Skip to content

Instantly share code, notes, and snippets.

@gingray
Last active August 20, 2017 15:57
Show Gist options
  • Save gingray/63e6d7f85aa26f71dbbf to your computer and use it in GitHub Desktop.
Save gingray/63e6d7f85aa26f71dbbf to your computer and use it in GitHub Desktop.
git features

set mvim as editor for git

git config --global core.editor "mvim --remote-wait"

revert interactive rebase

git reset --hard ORIG_HEAD

remove safe all merged branches localy except master and develop

git branch --merged | grep -v "\*" | grep -v master | grep -v develop | xargs -n 1 git branch -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment