Skip to content

Instantly share code, notes, and snippets.

@sbarski
Last active March 17, 2016 00:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sbarski/a84f60a2317b84138d40 to your computer and use it in GitHub Desktop.
Save sbarski/a84f60a2317b84138d40 to your computer and use it in GitHub Desktop.
Git tips and tricks
**Automatically delete orig files after merge**
git config --global mergetool.keepBackup false
**Interactive git clean**
git clean -i
**All git commits not pushed**
git cherry -v
**How to grep (search) committed code in the git history?**
git grep <regexp> $(git rev-list --all)
**looks for differences that introduce or remove an instance of string**
git log -Spassword
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment