Skip to content

Instantly share code, notes, and snippets.

@kopparam
Created August 19, 2014 08:59
Show Gist options
  • Save kopparam/0026d582c70a9a275810 to your computer and use it in GitHub Desktop.
Save kopparam/0026d582c70a9a275810 to your computer and use it in GitHub Desktop.
My gitconfig on Mac
[user]
email = kashyapk@thoughtworks.com
name = Kashyap Kopparam
[push]
default = upstream
[alias]
co = checkout
ci = commit
st = status
sta = stash
pr = pull --rebase
pu = push
aa = add -A .
rbc = rebase --continue
rba = rebase --abort
l = log --graph --pretty=format:'%Cred%h%Creset%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset %Cblue%an (%ae)%Creset' --abbrev-commit
l10 = log --graph --pretty=format:'%Cred%h%Creset%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset %Cblue%an (%ae)%Creset' --abbrev-commit -10
dc = diff --cached --color
cp = cherry-pick
ap = add -p
cpa = cherry-pick --abort
lall = log --graph --pretty=format:'%Cred%h%Creset%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset %Cblue%an (%ae)%Creset' --abbrev-commit --all
[core]
editor = vim
[color]
ui = true
[merge]
defaultToUpstream = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment