Created
January 18, 2016 19:15
-
-
Save whatAboutJohn/5ed12e888a6a08463d9b to your computer and use it in GitHub Desktop.
Adds "dif" alias to git to enable text search of an unstaged file.
This file contains hidden or 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
# Add this line to ~/.gitconfig in [alias]. | |
dif = "!sh -c \"git diff $(git diff --name-only -- \"*$1*\")\"" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment