Advertisement
Guest User

Untitled

a guest
Jan 16th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. # Discard all changes on your local branch and go back to the version you have on the remote branch
  2. # Put this in your .gitconfig
  3. [alias]
  4. dammit = !BRANCH=$(git rev-parse --abbrev-ref HEAD) \
  5. && git fetch origin $BRANCH \
  6. && git reset --hard origin/$BRANCH
  7. # Usage: git dammit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement