A
A
Anton Mashletov2017-06-21 15:42:40
git
Anton Mashletov, 2017-06-21 15:42:40

How to push to master from developer without switching branches?

There are two branches. develop and master. I (and others) work with develop. Push to master = release to production. No left commits go to the master. Only fast-forward margin with develop.
The problem is that in order to post the slightest edit, I have to:

  1. first update develop and resolve conflicts, push your changes
  2. switch to master
  3. do pull updates
  4. do merge develop
  5. push origin master

The last 4 points take a lot of time. Is it possible to put develop immediately on origin:master with some command, without switching.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Moseychuk, 2017-06-21
@mashletov

Why didn't you like a simple push?
git push repo local:remote
git push origin develop:master

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question