Quantcast
Channel: Undo a merge by pull request? - Stack Overflow
Browsing latest articles
Browse All 10 View Live

Answer by Muhammad Jawad Mansoor for Undo a merge by pull request?

First run this command to get all the merges in the main branch(the branch where the work was merged). git log --mergesyou will get something like this:commit 125a57ec3bf3eeXXXXXXXXXXXXXXXXXXef347e30...

View Article



Image may be NSFW.
Clik here to view.

Answer by Saurabh Mishra for Undo a merge by pull request?

If you want to undo the pull request so we can follow thesesteps-List of activities all pull request -git reflogAfter running the above command this output will occur.then run reset command-git reset...

View Article

Answer by Vicky_4899 for Undo a merge by pull request?

If you give the following command you'll get the list of activities including commits, merges.git reflogYour last commit should probably be at 'HEAD@{0}'. You can check the same with your commit...

View Article

Image may be NSFW.
Clik here to view.

Answer by FluffySamurai for Undo a merge by pull request?

To undo a github pull request with commits throughout that you do not want to delete, you have to run a:git reset --hard --merge <commit hash>with the commit hash being the commit PRIOR to...

View Article

Answer by Mike Marshall for Undo a merge by pull request?

I use this place all the time, thanks.I was searching for how to undo a pull request and got here.I was about to just git reset --hard to "a long time ago" anddo a fast forward back to where I was...

View Article


Image may be NSFW.
Clik here to view.

Answer by VonC for Undo a merge by pull request?

Starting June 24th, 2014, you can try cancel a PR easily (See "Reverting a pull request") with:Introducing the Revert Buttonyou can easily revert a pull request on GitHub by clicking Revert:You'll be...

View Article

Answer by errordeveloper for Undo a merge by pull request?

There is a better answer to this problem, though I could just break this down step-by-step. You will need to fetch and checkout the latest upstream changes like so, e.g.:git fetch upstreamgit checkout...

View Article

Answer by samthebest for Undo a merge by pull request?

If the pull was the last thing he did thengit reset --hard HEAD~1

View Article


Image may be NSFW.
Clik here to view.

Answer by Paŭlo Ebermann for Undo a merge by pull request?

Look at your commit graph (with gitk or a similar program). You will see commits from the pull request, and you will see your own commits, and a merge commit (if it was not a fast-forward merge). You...

View Article


Undo a merge by pull request?

Someone accepted a pull request which they shouldn't have. Now we have a bunch of broken code merged in. How do you undo a pull request? I was just going to revert the changes to the commit just before...

View Article
Browsing latest articles
Browse All 10 View Live




Latest Images