Skip to content

Instantly share code, notes, and snippets.

@Avaq
Created Sep 25, 2017
Embed
What would you like to do?
# 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