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)
#!/usr/bin/python
import sys
import os
os.system('meld "%s" "%s"' % (sys.argv[2], sys.argv[5]))
[user]
name = Pavan Kumar Sunkara
email = [email protected]
[core]
editor = vim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
[sendemail]
smtpencryption = tls
smtpserver = smtp.gmail.com
smtpuser = [email protected]
smtppass = password
smtpserverport = 587
to = [email protected]
[web]
browser = google-chrome
[rerere]
enabled = 1
autoupdate = 1
[alias]
s = status
sb = status -s -b
sa = stash apply
sc = stash clear
sd = stash drop
sl = stash list
sp = stash pop
ss = stash save
d = diff
dc = diff --cached
dk = diff --check
dck = diff --cached --check
c = commit
ca = commit -a
cm = commit -m
cam = commit -am
cd = commit --amend
cad = commit -a --amend
a = add .
ap = apply
as = apply --stat
ac = apply --check
l = log --oneline
lg = log --oneline --graph --decorate
o = checkout
ob = checkout -b
b = branch
ba = branch -a
bd = branch -d
br = branch -r
f = fetch
fp = format-patch
fk = fsck
m = merge
ps = push
pl = pull
pb = pull --rebase
pr = prune -v
psf = push -f
psu = push -u
pso = push origin
plo = pull origin
pbo = pull --rebase origin
psfo = push -f origin
psuo = push -u origin
r = remote
rb = rebase
re = reset
reh = reset --hard
rem = reset --mixed
res = reset --soft
rehh = reset --hard HEAD
remh = reset --mixed HEAD
resh = reset --soft HEAD
rv = remote -v
rp = remote prune
rs = remote show
rso = remote show origin
rpo = remote prune origin
w = show
meldon = config diff.external /home/pkumar/.diff.py
meldof = config --remove-section diff
human = name-rev --name-only --refs=refs/heads/*
[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