Skip to content

Instantly share code, notes, and snippets.

@americos
Created July 31, 2014 17:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save americos/084c3ff32653783b5d40 to your computer and use it in GitHub Desktop.
Save americos/084c3ff32653783b5d40 to your computer and use it in GitHub Desktop.
My Gitconfig
[alias]
co = checkout
a = add
s = show
st = status
d = diff
ds = diff --staged
ci = commit
br = branch
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
type = cat-file -t
dump = cat-file -p
pretty = log --pretty=oneline
g = log --graph --pretty=oneline --all --abbrev-commit --decorate
gm = log --graph --pretty=oneline --all --abbrev-commit --decorate --author americos@gmail.com
gmx = log --graph --pretty=format:\"%h %ad | %s%d [%an]\" --all --abbrev-commit --decorate --author americos@gmail.com
f = show --pretty="format:" --name-only
undo = reset --soft HEAD^
standup = log --since '1 day ago' --oneline --author americos@gmail.com
standupw = log --since '7 days ago' --oneline --author americos@gmail.com
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment