Skip to content

Instantly share code, notes, and snippets.

@rroblak
Last active December 18, 2015 04:18
Show Gist options
  • Save rroblak/5724195 to your computer and use it in GitHub Desktop.
Save rroblak/5724195 to your computer and use it in GitHub Desktop.
.gitconfig
[color]
branch = auto
diff = auto
status = auto
grep = auto
[color "grep"]
match = blue bold
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
[diff]
tool = vimdiff
[difftool]
prompt = false
[alias]
a = add
b = branch
ci = commit
co = checkout
cob = checkout -b
cp = cherry-pick
d = diff
dt = difftool
ds = diff --staged
dts = difftool --staged
g = grep -n --color -E
gl = grep -l
l = log
ls = log --pretty=oneline
lg = log --graph --decorate --pretty=oneline --abbrev-commit
lga = log --graph --decorate --pretty=oneline --abbrev-commit --all
s = status
sh = show
us = reset HEAD # unstage
uc = reset --soft HEAD^ # undo commit
br = branch
pullup = pull upstream master
pullrup = pull --rebase upstream master
pruneu = fetch upstream -p
com = checkout master
pullm = pull origin master
pullrom = pull --rebase origin master
pushm = push origin master
pruneo = fetch origin -p
[core]
excludesFile = ~/.gitignore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment