Last active
March 17, 2016 00:06
-
-
Save sbarski/a84f60a2317b84138d40 to your computer and use it in GitHub Desktop.
Git tips and tricks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
**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