Git/源:修订间差异
来自康健生活
< Git
创建页面,内容为“== 标题文本 == == 设置多源 ==” |
|||
| 第1行: | 第1行: | ||
== 标题文本 == | == 标题文本 == | ||
== 设置多源 == | == 设置多源 == | ||
代码同步到多个仓库时要分别命名 repo, eq: | |||
{{shc|<syntaxhighlight lang="bash"> | |||
# 添加第一个远程<github>仓库<wiki.git> 别名:github-repo | |||
git remote add github-repo <github-repo-url> | |||
# 添加第二个远程<coding.net>仓库<wiki.git> 别名:coding-repo | |||
git remote add coding-repo <coding-repo-url> | |||
</syntaxhighlight>|$|/home/kangkk}} | |||
2025年4月20日 (日) 12:00的版本
标题文本
设置多源
代码同步到多个仓库时要分别命名 repo, eq:
/home/kangkk
# 添加第一个远程<github>仓库<wiki.git> 别名:github-repo
git remote add github-repo <github-repo-url>
# 添加第二个远程<coding.net>仓库<wiki.git> 别名:coding-repo
git remote add coding-repo <coding-repo-url>
No categories