Skip to content

Instantly share code, notes, and snippets.

@anshul
Created January 17, 2017 13:33
Show Gist options
  • Select an option

  • Save anshul/ebb3d1a3b55b0e7e1b5f1312625e0078 to your computer and use it in GitHub Desktop.

Select an option

Save anshul/ebb3d1a3b55b0e7e1b5f1312625e0078 to your computer and use it in GitHub Desktop.
My current gitconfig
[user]
name = Example Name
email = mail@example.com
[github]
user = example
[branch]
autosetupmerge = true
[core]
autocrlf = input
whitespace=fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = /Users/anshul/.gitignore
[color]
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = cyan dim
frag = magenta bold
old = red dim
new = green dim
whitespace = red reverse
[color "status"]
added = yellow
changed = green
untracked = cyan
[alias]
st = status
ci = commit -a
br = branch
co = checkout
df = diff --color
ds = diff --staged
unstage = reset HEAD
uncommit = reset --soft HEAD^
olog = log --oneline
diffi = diff --color --color-words --abbrev --ignore-all-space
diffw = diff --color --color-words --abbrev
diffn = diff --color --name-status
lp = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit -p
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --name-status
l = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
unpushed = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --branches --not --remotes
sync = "remote update origin --prune"
pl = "merge --ff-only @{u}"
[push]
default = simple
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment