【发布时间】:2014-04-27 11:18:23
【问题描述】:
我有以下几点:
$ git remote show production
Fetching repository, done.
...
Local branches configured for 'git pull':
master merges with remote master
production merges with remote production
Local refs configured for 'git push':
master pushes to master (up to date)
production pushes to production (up to date)
但我需要以下内容,将我的本地分支production 推送到我的远程分支master。我该如何改变呢?
$ git remote show production
Fetching repository, done.
...
Local branches configured for 'git pull':
production merges with remote master
Local refs configured for 'git push':
production pushes to master (up to date)
编辑
如果我尝试
git branch --set-upstream production production/master
我有这个奇怪的结果(“staging”是我使用的另一个远程环境):
Branch production set up to track remote branch master from staging.
【问题讨论】:
标签: git heroku github branch git-remote