Created
January 22, 2015 15:52
-
-
Save codepreneur/43c7549e0c15544875ff to your computer and use it in GitHub Desktop.
Useful config commands
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
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue)<%an>%Creset' --abbrev-commit" | |
git lg -p (to include code changes too) | |
git lg -p <file> (to restrict logs/changes to specific file) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I also like st = status, co = checkout, diffsm = diff --submodule=log, dc = diff --cached