由于github速度比较慢,所以想主力用gitshell,然后github做备份,有没有什么办法可以一次commit,两边一起更新?
|
1
如果你的需求是一个push同事push到多个url的话,修改config文件
[remote "origin"] url = URL/TO/GITHUB url = URL/TO/GITSHELL |
|
2
感谢哥们,我刚尝试了下,发生了这样的问题
失败了,问题如下: [remote "all"] url = [email protected]:eastfox2002/ruby.git url = [email protected]:eastfox2002/ruby.git 问题 ERROR: Repository invalid. fatal: The remote end hung up unexpectedly 如果是单独url,都可以,求助,谢谢 |
|
davepkxxxMay 8, 2013
3
没有办法吗?
|
|
ShadowStarMay 8, 2013
4
@eastfox2002 你的Git的版本是多少?
我的版本是「git version 1.7.12.4 (Apple Git-37)」 |
|
5
@ShadowStar 我的是git version 1.7.4.4 难道太老了,我更新试试,谢谢
|
|
mingzhiMay 8, 2013
6
@ShadowStar 的方法 可以吧。。
我就是这么搞的。。 |
|
thedevil5032May 8, 2013
7
如果有代理(GA 一类的), 其实 GitHub HTTPS 的速度不错的。
|
|
8
是不是你命令用错了,如果你配的是all要用
git push all master 提交。 命令 git remote update 可更新所有远端源到本地 然后你自己看情况merge |
|
slixurdMay 8, 2013
9
LS说的对
你现在用的是[remote "all"] 当然是 git push all master提交.. |
|
10
@chemzqm 理论上命令应该没有用错,刚测试了下,还是不行呢。。。谢谢
ruby user$ git push all master ERROR: Repository invalid. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. |
|
11
@ShadowStar 我升级到1.8.1了。。还是失败了。。。
|
|
linzhiMay 9, 2013
12
|
|
ljbha007May 9, 2013
13
|