Created
October 26, 2015 10:56
-
-
Save adamhepton/434f3588551a2fdabc82 to your computer and use it in GitHub Desktop.
Hard reset git branch to state of corresponding remote tracking branch
This file contains 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
alias reset='git status -sb | awk -F'\''[/.]'\'' '\''NR==1{print "git reset --hard " $4 "/" $5}'\'' | xargs -I {} sh -c {}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment