Skip to content

Instantly share code, notes, and snippets.

@bbarao
Created October 15, 2015 14:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bbarao/6da9ee8422064eb2434f to your computer and use it in GitHub Desktop.
Save bbarao/6da9ee8422064eb2434f to your computer and use it in GitHub Desktop.
My Git Config
[user]
name = YOURNAME
email = YOUR@EMAIL.xx
[core]
pager = less -FRSX
editor = /usr/bin/vim
[color]
diff = auto
status = auto
branch = auto
interactive = auto
ui = auto
pager = true
[merge]
tool = "kdiff3"
stat = true
[alias]
diffw = diff -w --word-diff=color --word-diff-regex=.
br = branch
co = checkout
newbr = !sh -c 'git branch $1 && git push origin $1 && git branch -f $1 origin/$1 && git checkout $1' -
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
lgdch = log --no-merges --pretty=format:' * %s'
lc = log ORIG_HEAD.. --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative --stat
st = status -s
wc = whatchanged --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative --name-status
rank = shortlog -sn --no-merges
pur = pull --rebase
puf = !git stash && echo " ------------- " && git pull --rebase && echo " ------------- " && git stash pop
pushd = stash
popd = stash pop
ltag = describe --tags
[branch]
autosetuprebase = always
[push]
default = tracking
[color "diff"]
whitespace = red reverse
[rebase]
stat = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment