Skip to content

Instantly share code, notes, and snippets.

@dong
Forked from pksunkara/config
Created February 7, 2017 07:26
Show Gist options
  • Select an option

  • Save dong/8eed72660b3d9960b4e1212e44e46ba1 to your computer and use it in GitHub Desktop.

Select an option

Save dong/8eed72660b3d9960b4e1212e44e46ba1 to your computer and use it in GitHub Desktop.
Sample of git config file (Example .gitconfig)
[user]
name = Pavan Kumar Sunkara
email = [email protected]
[core]
editor = vim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
[alias]
s = status
d = diff
dc = diff --cached
c = commit
a = add .
l = log --oneline
lg = log --oneline --graph
o = checkout
b = branch
f = fsck
ps = push
pl = pull
pr = prune
r = remote
ss = stash save
sl = stash list
sp = stash pop
sd = stash drop
sa = stash apply
sc = stash clear
[color]
ui = true
[color "branch"]
current = yellow bold
local = green bold
remote = cyan bold
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
whitespace = red reverse
[color "status"]
added = green bold
changed = yellow bold
untracked = red bold
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment