我可以用一只手学习如何将本地分支推送到远程分支。请看下面。非常感谢!推送到git远程分支
在当地的分行被克隆回购然后做
$ git checkout -b mybranch remotes/origin/mybranch
$ git branch -a
master
* mybranch
remotes/origin/HEAD -> origin/master
remotes/origin/master
remotes/origin/mybranch
后创建的,但试图推动修改回来的时候了:
$ git push mybranch mybranch
fatal: 'mybranch' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
$ git push remotes/origin/mybranch mybranch
fatal: 'mybranch' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
$ git push origin/mybranch mybranch
fatal: 'mybranch' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
感谢abizern!似乎一旦你明白:) – julio 2011-02-22 18:46:50