Skip to content

Instantly share code, notes, and snippets.

@rowanmanning
Created January 27, 2012 10:39
Show Gist options
  • Save rowanmanning/1688225 to your computer and use it in GitHub Desktop.
Save rowanmanning/1688225 to your computer and use it in GitHub Desktop.
Useful Git aliases - run these commands

Pretty log format

Graph with author and commit hash:

git config --global alias.plog 'log --graph --pretty=format:\"%C(yellow)%h%x20%C(green)%an%x20%Creset%s\"'

Standup

See your commits since yesterday/last friday (change your name in this command)

git config --global alias.standup 'log --since yesterday --oneline --branches=* --author=Yourname'
git config --global alias.standup-monday 'log --since "3 days ago" --oneline --branches=* --author=Yourname'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment