Skip to content

Instantly share code, notes, and snippets.

@gnue
Last active October 6, 2015 01:07
Show Gist options
  • Save gnue/2908758 to your computer and use it in GitHub Desktop.
Save gnue/2908758 to your computer and use it in GitHub Desktop.
秘伝の .gitconfig
[core]
quotepath = false
[alias]
st = status
ci = commit -a
co = checkout
up = pull --rebase
lg = log --graph --all --color --pretty='%x09%h %cn%x09%s %Cred%d'
lo = log --graph --all --color --pretty='%x09%h %ad %cn%x09%s %Cred%d' --date=short
ls = ls-files
p0 = format-patch -r HEAD~
[color]
ui = auto
[pager]
diff = diff-highlight | less
[mergetool "ediff"]
cmd = emacs -eval \"(ediff-merge-files-with-ancestor \\\"$PWD/$LOCAL\\\" \\\"$PWD/$REMOTE\\\" \\\"$PWD/$BASE\\\" nil \\\"$PWD/$MERGED\\\")\"
[merge]
tool = ediff
@gnue
Copy link
Author

gnue commented Feb 20, 2014

diff-highlight はたぶんこれかな(参考:diff-highlightを使用してみる | Gerolian
log と show は指定する意味がなさげだから削除した

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