Skip to content

Instantly share code, notes, and snippets.

@Igotit
Last active August 29, 2015 14:01
Show Gist options
  • Save Igotit/82f998a753d34750730a to your computer and use it in GitHub Desktop.
Save Igotit/82f998a753d34750730a to your computer and use it in GitHub Desktop.
Color and alias parts of local .gitconfig
[color]
diff = auto
ui = auto
[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
[alias]
who = shortlog -s --
st = status
ci = commit
cp = cherry-pick
mf = merge
mn = merge --no-ff
br = branch
co = checkout
df = diff
ls = ls-files
ign = ls-files -o -i --exclude-standard
lg = log -p
sl = log --graph --pretty=format:'%Cred%h%Creset -%Cgreen%d%Creset %Cblue%an%Creset: %s %C(yellow)(%ad)%Creset' --abbrev-commit --date=iso --all
rb = rebase
ru = remote update
su = submodule status
si = submodule update --init
last = log -1 HEAD
[difftool "vimdiff"]
cmd = vimdiff
[difftool]
prompt = No
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment