Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Discard all changes on your local branch and go back to the version you have on the remote branch
- # Put this in your .gitconfig
- [alias]
- dammit = !BRANCH=$(git rev-parse --abbrev-ref HEAD) \
- && git fetch origin $BRANCH \
- && git reset --hard origin/$BRANCH
- # Usage: git dammit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement