如何同时使用github和gitshell?能不能一次commit,两个一起更新啊? - V2EX
git
Pro Git
Atlassian Git Tutorial
Pro Git 简体中文翻译
GitX
eastfox2002
V2EX    git

如何同时使用github和gitshell?能不能一次commit,两个一起更新啊?

  •  
  •   eastfox2002 May 8, 2013 4531 views
    This topic created in 4753 days ago, the information mentioned may be changed or developed.
    由于github速度比较慢,所以想主力用gitshell,然后github做备份,有没有什么办法可以一次commit,两边一起更新?
    13 replies    1970-01-01 08:00:00 +08:00
    ShadowStar
        1
    ShadowStar  
       May 8, 2013   1
    如果你的需求是一个push同事push到多个url的话,修改config文件
    [remote "origin"]
    url = URL/TO/GITHUB
    url = URL/TO/GITSHELL
    eastfox2002
        2
    eastfox2002  
    OP
       May 8, 2013
    感谢哥们,我刚尝试了下,发生了这样的问题
    失败了,问题如下:
    [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,都可以,求助,谢谢
    davepkxxx
        3
    davepkxxx  
       May 8, 2013
    没有办法吗?
    ShadowStar
        4
    ShadowStar  
       May 8, 2013
    @eastfox2002 你的Git的版本是多少?
    我的版本是「git version 1.7.12.4 (Apple Git-37)」
    eastfox2002
        5
    eastfox2002  
    OP
       May 8, 2013
    @ShadowStar 我的是git version 1.7.4.4 难道太老了,我更新试试,谢谢
    mingzhi
        6
    mingzhi  
       May 8, 2013
    @ShadowStar 的方法 可以吧。。
    我就是这么搞的。。
    thedevil5032
        7
    thedevil5032  
       May 8, 2013
    如果有代理(GA 一类的), 其实 GitHub HTTPS 的速度不错的。
    chemzqm
        8
    chemzqm  
       May 8, 2013   1
    是不是你命令用错了,如果你配的是all要用
    git push all master 提交。
    命令 git remote update 可更新所有远端源到本地
    然后你自己看情况merge
    slixurd
        9
    slixurd  
       May 8, 2013
    LS说的对
    你现在用的是[remote "all"]
    当然是 git push all master提交..
    eastfox2002
        10
    eastfox2002  
    OP
       May 9, 2013
    @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.
    eastfox2002
        11
    eastfox2002  
    OP
       May 9, 2013
    @ShadowStar 我升级到1.8.1了。。还是失败了。。。
    ljbha007
        13
    ljbha007  
       May 9, 2013
    @eastfox2002
    你这个我也遇到过
    当时是因为ssh-key没有加到github的profile里边
    还有就是忘了开ssh-keyagent
    About     Help     Advertise     Blog     API     FAQ     Solana nbsp;   4277 Online   Highest 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 44ms UTC 00:06 PVG 08:06 LAX 17:06 JFK 20:06
    Do have faith in what you're doing.
    ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86