Gitea v1.21.1 中文文档
postgresql/postgresql.key : 数据库客户端私钥 ~/.postgresql/root.crt : 用于验证服务器证书的CA证书链 注意:上述文件名在 PostgreSQL 中是硬编码的,无法更改。 7. 根据需要调整凭据、所有权和权限: 1. chown git:git ~/.postgresql/postgresql.crt ~/.postgresql/postgresql docker-compose down 命令。这将停止和终止容器,但卷仍将存在。 注意:如果在 HTTP 上使用的是非 3000 端口,请将 app.ini 更改为匹配 LOCAL_ROOT_URL = http://localhost:3000/ 。 在通过 docker-compose 启动 Docker 设置后,可以使用喜爱的浏览器访问 Gitea,完成安装过程。访问 http://<服务器-IP>:3000 docker-compose down 。这将停止并杀死容器。这些卷将仍然存在。 注意:如果在 http 上使用非 3000 端口,请更改 app.ini 以匹配 LOCAL_ROOT_URL = http://localhost:3000/ 。 通过 docker-compose 启动 Docker 安装后,应该可以使用喜欢的浏览器访问 Gitea,以完成安装。访问 http://server-ip:30000 码力 | 303 页 | 3.88 MB | 1 年前3Pro Git 中文版 第2版 2.1.66
可以使用任何一个克隆下来的用户端来重建服务器上的仓库 (虽然可能会丢失某些服务器端的钩子(hook)设 置,但是所有版本的数据仍在,详见 在服务器上搭建 Git )。 克隆仓库的命令是 git clone <url> 。 比如,要克隆 Git 的链接库 libgit2,可以用下面的命令: $ git clone https://github.com/libgit2/libgit2 这会在当前目录下创建一个名为 Checking connectivity... done. $ cd ticgit $ git remote origin 你也可以指定选项 -v,会显示需要读写远程仓库使用的 Git 保存的简写与其对应的 URL。 $ git remote -v origin https://github.com/schacon/ticgit (fetch) origin https://github.com/schacon/ticgit 添加远程仓库 我们在之前的章节中已经提到并展示了 git clone 命令是如何自行添加远程仓库的, 不过这里将告诉你如何自 己来添加它。 运行 git remote add<url> 添加一个新的远程 Git 仓库,同时指定一个方便 使用的简写: $ git remote origin $ git remote add pb https://github.com/paulboone/ticgit 0 码力 | 501 页 | 19.30 MB | 1 年前3Pro Git 中文版 第2版 2.1.66
掉了,你通常可以使用任何一个克隆下来的用户端来重建服务器上的仓库 (虽然可能会丢失某些服务器端的钩子(hook)设置,但是所有版本的数据 仍在,详见 在服务器上搭建 Git )。 克隆仓库的命令是 git clone <url> 。 比如,要克隆 Git 的链接库 libgit2, 可以用下面的命令: $ git clone https://github.com/libgit2/libgit2 这会在当前目录下创建一个名为 connectivity... done. $ cd ticgit $ git remote origin 你也可以指定选项 -v,会显示需要读写远程仓库使用的 Git 保存的简写与其对 应的 URL。 $ git remote -v origin https://github.com/schacon/ticgit (fetch) origin https://github.com/schacon/ticgit git clone 命令是如何自行添加远程仓 库 的 , 不 过 这 里 将 告 诉 你 如 何 自 己 来 添 加 它 。 运 行 git remote add<url> 添加一个新的远程 Git 仓库,同时指定一个方便使用的简 写: $ git remote origin $ git remote add pb https://github.com/paulboone/ticgit 0 码力 | 670 页 | 13.59 MB | 1 年前3Pro Git 2nd Edition 2.1.413
be there — see Getting Git on a Server for more details). You clone a repository with git clone <url>. For example, if you want to clone the Git linkable library called libgit2, you can do so like this: new remote Git repository as a shortname you can reference easily, run git remote add<url>: $ git remote origin $ git remote add pb https://github.com/paulboone/ticgit $ git remote -v origin com/paulboone/ticgit (push) Now you can use the string pb on the command line in lieu of the whole URL. For example, if you want to fetch all the information that Paul has but that you don’t yet have in 0 码力 | 731 页 | 21.49 MB | 1 年前3Pro Git 2nd Edition 2.1.413
be there — see Getting Git on a Server for more details). You clone a repository with git clone <url>. For example, if you want to clone the Git linkable library called libgit2, you can do so like this: new remote Git repository as a shortname you can reference easily, run git remote add<url>: $ git remote origin $ git remote add pb https://github.com/paulboone/ticgit $ git remote -v origin com/paulboone/ticgit (push) Now you can use the string pb on the command line in lieu of the whole URL. For example, if you want to fetch all the information that Paul has but that you don’t yet have in 0 码力 | 501 页 | 17.96 MB | 1 年前3Pro Git 2nd Edition 2.1.413
be there — see Getting Git on a Server for more details). You clone a repository with git clone <url>. For example, if you want to clone the Git linkable library called libgit2, you can do so like this: new remote Git repository as a shortname you can reference easily, run git remote add<url>: $ git remote origin $ git remote add pb https://github.com/paulboone/ticgit $ git remote -v origin com/paulboone/ticgit (push) Now you can use the string pb on the command line in lieu of the whole URL. For example, if you want to fetch all the information that Paul has but that you don’t yet have in 0 码力 | 691 页 | 13.35 MB | 1 年前3git 操作手册
#从远程代码库下载main分支的最新修改,若未 指定分支名,则默认拉取同本地分支名的分支 # git remote -v #查看当前仓库关联的远程代码库的URL # git remote rm rmtRepo #删除远程仓库 ★协作成员操作⑦到⑨,详见下一小节:克隆远程仓库 ★克隆远程仓库 # git grep -v '^#' | grep -v '^$' #查看默认配置 external_url 'h�p://gitlab.example.com' #修改配置文件 # cat > /etc/gitlab/gitlab.rb <url 'h�ps://gitlab.cof-lee.com' #设置数据存放路径,默认 /var/opt/g and integra�ons” 点击“保存” 然后普通用户就可在自己的项目里配置“WebHook”功能了 Se�ngs→Webhooks→Add new webhook Webhook URL: h�p://10.99.1.241:32433/api/v2/job_templates/42/gitlab/ Webhook Key: vHRMIUlRQql9khxfr23sVlaeeM 0 码力 | 35 页 | 1.69 MB | 1 年前3
共 7 条
- 1