在我的本地机器上,我有一个存储库设置如下
* remote origin
Fetch URL: git@github.com:me/my_project.git
Push URL: git@github.com:me/my_project.git
HEAD branch: master
Remote branches:
mac-master tracked
master tracked
Local branch configured for 'git pull':
master merges with remote master
Local ref configured for 'git push':
master pushes to master (local out of date)
只有本地master
分支,我想总是将我的本地 master 推送到远程分支。我应该这样做: mac-master
git push origin master:mac-master
每次我需要推动?如果不是,那么正确的做法是什么?