Vas*_*ant 13 git sourceforge google-code github
是否有可能在GitHub,SourceForge和Google Code上镜像git存储库(在所有主机上同步),因为它们都支持git?
Ste*_*ngs 11
您可以编辑.git/config文件以创建推送到多个存储库的远程数据库.
[remote "everyone"]
url = https://github.com/USERNAME/REPOSITORY.git
url = ssh://USERNAME@git.code.sf.net/p/PROJECTNAME/MOUNTPOINT
url = https://PROJECT.googlecode.com/git
Run Code Online (Sandbox Code Playgroud)
或者使用git config --add命令:
git config --add remote.everyone.url https://github.com/USERNAME/REPOSITORY.git
git config --add remote.everyone.url ssh://USERNAME@git.code.sf.net/p/PROJECTNAME/MOUNTPOINT
git config --add remote.everyone.url https://PROJECT.googlecode.com/git
Run Code Online (Sandbox Code Playgroud)
现在,当您键入时git push everyone master,您将把主分支推送到所有三个遥控器.
感谢Stack Overflow的回答提供线索.
| 归档时间: |
|
| 查看次数: |
1304 次 |
| 最近记录: |