Git/源:修订间差异

来自康健生活
< Git
Kangkk​(留言 | 贡献)
Kangkk​(留言 | 贡献)
第10行: 第10行:
git remote add coding-repo <coding-repo-url>
git remote add coding-repo <coding-repo-url>
</syntaxhighlight>|$|/home/kangkk}}
</syntaxhighlight>|$|/home/kangkk}}
测试
{{shc|<syntaxhighlight lang="bash">
git remote -v</syntaxhighlight>|$|/home/kangkk}}

2025年4月20日 (日) 12:01的版本

标题文本

设置多源

代码同步到多个仓库时要分别命名 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>

测试

/home/kangkk
git remote -v