每一次,當我要推,我用這個命令:如何配置我的git進行推送?
$ git push
它拋出這個錯誤:
fatal: The current branch master has no upstream branch.
To push the current branch and set the remote as upstream, use
git push --set-upstream origin master
當我使用這個命令的錯誤將會消失:
$ git push origin master
好吧,我可以隨時使用這個^命令,但我想knon,我可以說的Git,{當我說push
,我的意思是push origin master
}一次永遠?
我怎麼理解「遠程分支是否存在」? –
@MartinAJ:參見http://stackoverflow.com/q/21609781/1256452 – torek