Created
September 25, 2017 12:25
-
-
Save Avaq/ee4f8bf625e2cb0b15debb5871efc1eb to your computer and use it in GitHub Desktop.
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
# Exit with code 1 if the FILE has *modified* lines | |
git diff --quiet $FILE || [ $(git diff --numstat $FILE | cut -f 2) = '0' ] | |
# Output a visual graph of commits | |
git log --all --graph --pretty='format:%C(auto)%h% D%Creset %Cgreen%an, %ar%Creset %C(white)(%s)%Creset' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment