0
所以問題是,我有一個git倉庫,我想將它上傳到GitHub。我已經在SOF上運行了多個線程,並且它建議git push -u origin master。問題是,當我這樣做時,它告訴我我需要先合併,這樣我纔不會丟失任何數據。所以它建議我去拉。我做了,這是我得到:git pull:告訴它要合併哪個分支
You asked me to pull without telling me which branch you
want to merge with, and 'branch.master.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 "master"]
remote = <nickname>
merge = <remote-ref>
[remote "<nickname>"]
url = <url>
fetch = <refspec>
See git-config(1) for details.
我該如何解決這個問題?
編輯:沒關係我只是解決了這個問題。如果你們遇到這樣做的一個問題: 混帳拉
當然,爲什麼git會告訴你(''再試一次(例如'git pull')')當你可以在stackoverflow上提問! –
2013-02-19 08:54:23
@Jeff,您需要關閉問題,接受現有答案或發佈自己的答案並接受答案。否則,這個問題將保持「未答覆」。 – 2013-02-19 09:19:51