Answer the question
In order to leave comments, you need to log in
How to revert to master branch after push?
Hello, I cloned the master branch, made changes, committed and pushed it to a new branch. How to switch back to the master branch, while having the repository take the state of this branch, so that you can then do the same actions without breaking anything?
Answer the question
In order to leave comments, you need to log in
1. Switch to master:
$ git checkout master
2. Or immediately merge the changes to the master branch:
$ git checkout master
$ git merge <имя ветки, в которой были изменения>
$
- do not copy.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question