Skip to content

Instantly share code, notes, and snippets.

@codepreneur
Created January 22, 2015 15:52
Show Gist options
  • Save codepreneur/43c7549e0c15544875ff to your computer and use it in GitHub Desktop.
Save codepreneur/43c7549e0c15544875ff to your computer and use it in GitHub Desktop.
Useful config commands
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)
@insidewhy
Copy link

I also like st = status, co = checkout, diffsm = diff --submodule=log, dc = diff --cached

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment