Created
August 29, 2013 11:15
-
-
Save searls/6376808 to your computer and use it in GitHub Desktop.
a handy way to unpull a pull that bit off more than you could chew.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
git reset --hard HEAD@{1} |
Author
searls
commented
Aug 29, 2013
- git pull
- You think "UGH I don't want to deal with all these changes right now"
- git unpull
- ❤️
Alternatively I think you could set up an alias named unpull
git config --global alias.unpull "reset --hard HEAD@{1}"
👍
So did you just forget you made this? https://twitter.com/searls/status/1259080072218046465
LOL, I completely forgot I made this.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment