Skip to content

Instantly share code, notes, and snippets.

@ankitjaininfo
Last active August 29, 2015 14:20
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 ankitjaininfo/95594f686311c97aa519 to your computer and use it in GitHub Desktop.
Save ankitjaininfo/95594f686311c97aa519 to your computer and use it in GitHub Desktop.
My .gitconfig
[alias]
lg = log --color --graph --pretty=format:'%Cred%h%Creset - %Cgreen(%cr) %C(yellow)%d%Creset %s %C(bold blue)<%an>%Creset' --abbrev-commit
ll = log --pretty=format:'%C(red)%h %Cgreen(%cr) %C(yellow)%d%Creset%s %C(bold blue)<%an>%Creset' --decorate --numstat
d = diff
dc = diff --cached
s = status
assume = update-index --assume-unchanged
unassume = update-index --no-assume-unchanged
assumed = "!git ls-files -v | grep ^h | cut -c 3-"
unassumeall = "!git assumed | xargs git update-index --no-assume-unchanged"
[user]
name = Ankit Jain
[credential]
helper = cache --timeout=56000
[branch]
autosetuprebase = always
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment