Skip to content

Instantly share code, notes, and snippets.

@leathersole
Created February 13, 2012 14:19
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 leathersole/1817224 to your computer and use it in GitHub Desktop.
Save leathersole/1817224 to your computer and use it in GitHub Desktop.
$HOME/.gitconfig
[user]
name = USER_NAME
email = MAIL_ADDRESS
[alias]
st = status
co = checkout
cb = checkout -b
# ci = commit -a # modifiedなファイルを全てstageへ
br = branch
glog = log --pretty=format:\"%C(red)%h%Creset %C(cyan)<%an>%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset\" --abbrev-commit --date=relative --graph
sh = show
so = remote show origin
ft = fetch
up = pull --rebase
ad = add
wc = whatchanged
lp = log -p
la = log --pretty=\"format:%ad %h (%an): %s\" --date=short
lr = log origin
oneline = log --pretty=oneline
ranking = shortlog -s -n --no-merges
log-graph = log --graph --date=short --pretty=format:'%Cgreen%h %cd %Cblue%cn %Creset%s'
log-all = log --graph --all --color --pretty='%x09%h %cn%x09%s %Cred%d%Creset'
dw = diff --color-words
dc = diff --cached
ds = diff --staged
d1 = diff HEAD^
d2 = diff HEAD^^
d3 = diff HEAD^^^
d4 = diff HEAD^^^^
d5 = diff HEAD^^^^^
d10 = diff HEAD^^^^^^^^^^
edit-unmerged = "!f() { git ls-files --unmerged | cut -f2 | sort -u ; }; vim `f`"
add-unmerged = "!f() { git ls-files --unmerged | cut -f2 | sort -u ; }; git add `f`"
gr = grep
gn = grep -n
[color]
status = auto
diff = auto
branch = auto
interactive = auto
grep = auto
[log]
date = iso
[core]
excludesfile = $HOME/.gitignore
autocrlf = input
[core]
excludesfile = $HOME/.gitignore
autocrlf = input
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment