How to redirect a remote branch

I have local master branch and remote master and production branches

My master corresponds to the remote master (acts like a trunk, but not fully tested for deployment, so I created a branch called production , which is always behind master )

eg. git branch -a

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

When I click, I will always click on master , but sometimes I feel that the quality is good enough and I want the production branch to production up with the changes in master , which command should I use?

+6
source share
1 answer

As others report:

 git push origin master:production 
+3
source

Source: https://habr.com/ru/post/915821/


All Articles