Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fast forward a remote branch

I have a local master branch and remote master and production branches

My master is corresponding to the remote master (act like the trunk, but no fully tested for deployment, so I have create a branch called production which is always behind the master)

e.g. git branch -a

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

When I push, i will always push to the master, but at sometimes, I feel the quality is good enough and I want the production branch to catch up the changes in master, what command I should use?

like image 509
Howard Avatar asked May 15 '12 17:05

Howard


1 Answers

As others have stated:

git push origin master:production
like image 73
Neil Forrester Avatar answered Sep 19 '22 20:09

Neil Forrester