所以我不确定这是否是我的问题的原因,但我不小心做到了:
git push -u origin master
代替:
git push -u origin facebook
当我在我的facebook
树枝上时。它回应:
Branch master set up to track remote branch master from origin.
现在,当我尝试推动时:
To git@git.url.com:url.git
! [rejected] facebook -> facebook (non-fast-forward)
error: failed to push some refs to 'git@git.url.com:url.git'
To prevent you from losing history, non-fast-forward updates were rejected
Merge the remote changes before pushing again. See the 'Note about
fast-forwards' section of 'git push --help' for details.
我也拉不出来:
You asked me to pull without telling me which branch you
want to merge with, and 'branch.facebook.merge' in
your configuration file does not tell me, either. Please
specify which branch you want to use on the command line and
try again (e.g. 'git pull <repository> <refspec>').
See git-pull(1) for details.
If you often merge with the same branch, you may want to
use something like the following in your configuration file:
[branch "facebook"]
remote = <nickname>
merge = <remote-ref>
[remote "<nickname>"]
url = <url>
fetch = <refspec>
See git-config(1) for details.