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?
As others have stated:
git push origin master:production
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With