Skip to content

Instantly share code, notes, and snippets.

@tansengming
Last active October 7, 2015 10:17
Show Gist options
  • Save tansengming/3149191 to your computer and use it in GitHub Desktop.
Save tansengming/3149191 to your computer and use it in GitHub Desktop.
Default gitconfig
[user]
name = SengMing Tan
email = [email protected]
[alias]
b = branch
c = commit .
co = checkout
stat = status
s = status
h = log --pretty=format:'%Cblue%h %Cgreen %ar%Creset %s'
l = log --decorate --oneline
current-branch = rev-parse --symbolic-full-name --abbrev-ref HEAD
p = !git push origin HEAD:$(git current-branch)
follow = !git branch -u origin/$(git current-branch)
[color]
ui = auto
[diff]
color = auto
rename = copy
[pager]
color = true
[status]
color = auto
[github]
user = tansengming
[core]
quotepath = false
editor = vim
[push]
default = upstream
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment