Skip to content

Instantly share code, notes, and snippets.

@fromkk
Created March 24, 2017 05:34
Show Gist options
  • Save fromkk/36a4a5857d8d8faa270739a9bef5c811 to your computer and use it in GitHub Desktop.
Save fromkk/36a4a5857d8d8faa270739a9bef5c811 to your computer and use it in GitHub Desktop.
[alias]
unstage=reset HEAD
pushcurrent=!git push origin `git rev-parse --abbrev-ref HEAD`
pullcurrent=!git pull origin `git rev-parse --abbrev-ref HEAD`
removemergedbranch=!git branch --merged | grep -vE '^\\*|master$|develop$' | xargs -I % git branch -d %
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment