Skip to content

Instantly share code, notes, and snippets.

@ankit
Created January 19, 2012 05:35
Show Gist options
  • Save ankit/1638191 to your computer and use it in GitHub Desktop.
Save ankit/1638191 to your computer and use it in GitHub Desktop.
My ~/.gitconfig
# ~/.gitconfig
# credits: https://gist.github.com/1637874
[alias]
s = status
df = diff --color-words
co = checkout
cm = commit -am
l = log --graph --pretty=format:'%C(yellow)%h%C(cyan)%d%Creset %s %C(white)- %an, %ar%Creset'
alias = !git config --list | grep 'alias\\.' | sed 's/alias\\.\\([^=]*\\)=\\(.*\\)/\\1\\\t => \\2/' | sort
[core]
pager = less
[color]
ui = auto # covers diff = true, status = auto, branch = auto
interactive = auto
[user]
name = [name]
email = [email]
[github]
user = [github username]
token = [github token]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment