Permalink
Fetching contributors…
Cannot retrieve contributors at this time
75 lines (59 sloc) 1.75 KB
[push]
default = current
[pull]
rebase = true
[merge]
ff = only
[format]
pretty = %Cblue%h%Creset %Cgreen[%ar]%Creset (%an) %s
[user]
name = Adarsh Pandit
email = adarshpandit@gmail.com
[color]
ui = auto
[alias]
a = add
aa = add --all
ap = !clear; add --patch
b = !`clear` && branch
br = for-each-ref --sort=-committerdate --format=\"%(color:blue)%(authordate:relative)\t%(color:red)%(authorname)\t%(color:white)%(color:bold)%(refname:short)\" refs/remotes
ca = commit -a
cb = checkout -b
cm = !clear && commit -vm
co = checkout
cob = checkout -b
com = checkout master
d = !clear && diff
dc = !clear && diff --cached
dm = !clear && diff origin/master
l = !clear && git log
p = push
q = rebase -i origin/master
rc = rebase --continue
sh = show
unstage = reset HEAD
wip = commit -m 'fixup! wip [ci skip]' && push
pr = !git log -n 1 --pretty=format:'%s%n%n%b' | hub pull-request -F -
squash = !git rebase -i origin/master
up = !git fetch origin && git rebase origin/master
ss = diff --shortstat origin/master
# Merge the branch you are on, push, and copy last branchname to the PasteBoard
down = !git checkout master && git merge @{-1} --ff-only && git name-rev --name-only @{-1} | pbcopy && git push
# Delete a branch both locally and on the server
delete-branch = !sh -c 'git push origin :refs/heads/$1 && git remote prune origin && git branch -D $1' -
[credential]
helper = osxkeychain
[diff-so-fancy]
markEmptyLines = false
[core]
editor = vim
ignorecase = true
excludesfile = ~/.gitignore_global
whitespace = trailing-space,space-before-tab
pager = diff-so-fancy | less -R --tabs=1,5
[apply]
whitespace = warn
[commit]
template = ~/.gitmessage
[diff]
compactionHeuristic = true