Skip to content

Instantly share code, notes, and snippets.

@baopham
Last active November 10, 2016 05:39
Show Gist options
  • Save baopham/4223990 to your computer and use it in GitHub Desktop.
Save baopham/4223990 to your computer and use it in GitHub Desktop.
.gitconfig
; GistID: 4223990
[user]
name = Bao Pham
email = "(none)"
[github]
user = baopham
[color]
ui = auto
branch = auto
diff = auto
interactive = auto
status = auto
[color "diff"]
meta = yellow bold
frag = magenta bold
[alias]
st = status
wdiff = diff --color-words
apw = add--interactive-words --patch=stage --
ap = add -p
ci = commit -v
co = checkout
br = branch
plog = log --date=relative --pretty=format:"%h%x09%an%x09%ad%x09%x09%s" --graph --decorate
llog = log --graph --decorate --pretty=oneline --abbrev-commit
sup = "submodule foreach git co master; git pull origin master"
sco = "submodule git co master"
unstage = reset HEAD --
pullre = pull --rebase
blog = log --topo-order --graph -u -L
last = log -1 HEAD
workemail = config user.email "bao@appnovation.com"
personalemail = config user.email "gbaopham@gmail.com"
cd = "!d=\"$(date -d \"$1\")\" && shift && GIT_COMMITTER_DATE=\"$d\" \
git commit --amend --date \"$d\""
[core]
excludesfile = ~/.gitignore_global
quotepath = false
pager = less -+S
whitespace = trailing-space,space-before-tab
[web]
browser = open
[apply]
whitespace = fix
[filter "media"]
required = true
clean = git media clean %f
smudge = git media smudge %f
@baopham
Copy link
Author

baopham commented Nov 10, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment