Pro 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 年前3
Pro 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 年前3
Gitea v1.21.1 中文文档受保护的标签 仓库镜像 密钥管理 Multi-factor Authentication (MFA) 开发 玩转 Gitea API 使用指南 OAuth2 提供者 迁移界面 集成 贡献 后端开发指南 前端开发指南 重构指南 本地化 帮助 常见问题 需要帮助 - 4 - 本文档使用 书栈网 · BookStack.CN 构建 致谢 当前文档 《Gitea v1 /usr/share/zsh/_gitea ,或者在您的 .zshrc 中使用 source 命令加载该脚本。 可能需要你根据具体情况进一步改进这些脚本。 请按照 Zig 的入门指南 安装 Zig。 编译 (Linux ➝ Linux) 1. CC="zig cc -target x86_64-linux-gnu" \ 2. CGO_ENABLED=1 \ 3. CGO_CFLAGS="-O2 镜像。您可以始终使用最新的稳定标签,或使用其他处 理 Docker 镜像更新的服务。 rootless 镜像使用 Gitea 内部 SSH 功能来提供 Git 协议,但不支持 OpenSSH。 本参考设置指南将用户引导通过基于 docker-compose 的设置。但是, docker-compose 的安装超出了本文档的范 围。要安装 docker-compose 本身, 请按照官方的0 码力 | 303 页 | 3.88 MB | 1 年前3
Pro Git 2nd Edition 2.1.413be 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 年前3
Pro Git 2nd Edition 2.1.413be 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 年前3
Pro 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 年前3
git 操作手册#从远程代码库下载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













