Skip to main content
The 2024 Developer Survey results are live! See the results

Timeline for How to undo a git pull?

Current License: CC BY-SA 3.0

6 events
when toggle format what by license comment
Jul 17, 2013 at 5:49 comment added Noufal Ibrahim Recreate the repository?
Jul 16, 2013 at 17:17 comment added O.O What if pull is the first action? If pull is at HEAD@{1}, and nothing else before that, how do you revert to a state before that?
May 7, 2012 at 18:42 comment added Domenic This was super-useful after a disastrous commit somehow interspersed merge commits into my history. Got them out by looking for a last-known good in the reflog and then force pushing.
Apr 28, 2011 at 9:37 comment added Noufal Ibrahim The other answer by sehe has details on how to get there.
Apr 28, 2011 at 9:32 comment added Kartins git reflog show gave this output: c9e5e4d HEAD@{0}: pull : Fast forward 1c86a22 HEAD@{1}: pull origin master: Fast forward 05c141a HEAD@{2}: pull : Fast forward Can I safely reset the HEAD to HEAD@{1}
Apr 28, 2011 at 8:01 history answered Noufal Ibrahim CC BY-SA 3.0