2012-05-15 37 views
6

我有一個本地master branch和遠程masterproduction分支如何快速前進遠程分支

master對應像行李箱遙控master(行爲,但對於部署沒有經過全面測試,所以我創建一個叫production的分支,它總是在master後面)

eg git branch -a

* master 
remotes/origin/master 
remotes/origin/production 

當我推,我會一直推到master,但有時候,我覺得質量不夠好,我希望production分支追趕master的變化,我應該使用什麼命令?

+0

可能重複http://stackoverflow.com/questions/5423517/how-do -i-push-a-local-git-branch-to-master-branch-in-the-remote) –

+3

我建議看看git文檔(http://git-scm.com/documentation)來讓自己熟悉基礎知識。 –

回答

3

正如其他have stated

git push origin master:production 
的[?如何推動本地的Git分支主分支中遠程(