Skip to content

Getting dev branch to same level as master #22289

Discussion options

You must be logged in to vote

Hi @petersauber!

The answer to this depends a little on whether or not you want to keep your Git history. The simplest way to put things back to the master branch would be to merge changes from master into the development branch and then push the merge commit from your local machine to the remote development branch. This would keep all of the change history recorded.

You could also force push a revert to the development branch, but it would be important to ask the developers on the project to pull that revert onto their local machiens which can be hard to control.

There are probably other methods as well, but those are the ones that come to the top of my head currently. Hope that helps!

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants