I have merged 2 feature branches using CLI. Now i find out they had to be merged the other way round, like not A to B, but B to A. i have also pushed the changes to central repo. Can anyone tell me if there is a way to revert these changes, undo a pull request and bring back the feature branch to last-1 commit stage, even for the central repo part?
how to undo git pull for the last commit when you dont have super rights of deleting the last commit
Asked
Active
Viewed 15 times
0
-
You're going to have to revert both merge commits, push that, then redo the merges in the correct order. If you hadn't already pushed to the remote, there would be a simple local fix you could have used. – Tim Biegeleisen Aug 03 '18 at 11:29
-
[See here](https://stackoverflow.com/questions/7099833/how-to-revert-a-merge-commit-thats-already-pushed-to-remote-branch) for how to do this. – Tim Biegeleisen Aug 03 '18 at 11:30