-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
45 lines (42 loc) · 1.38 KB
/
gitconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# This is Git's per-user configuration file.
[core]
# Please adapt and uncomment the following lines:
name = Gavin Chou
email = [email protected]
editor = vim
excludesfile = ~/.gitignore_global
# for UTF-8 file names
precomposeunicode = true
quotepath = false
# Preserve the default pager behavior in case $LESS is set by user
# https://unix.stackexchange.com/questions/469360/less-performs-differently-when-invoked-from-bash-and-from-git
# https://stackoverflow.com/questions/48511931/how-do-i-pass-options-to-less-from-git-diff
# https://www.git-scm.com/docs/git-config#git-config-corepager
# When the LESS environment variable is unset, Git sets it to FRX (if LESS environment variable is set, Git does not change it at all).
pager = "less -FXR"
[alias]
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
cm = commit
co = checkout
cp = cherry-pick
st = status
br = branch
rs = remote show
[user]
name = Gavin Chou
email = [email protected]
[http]
postBuffer = 524288000
[credential]
helper = store --file ~/.git-credentials
helper = cache --timeout 10368000
# [commit]
# template = ~/.stCommitMsg
[diff]
tool = vimdiff
[difftool]
prompt = true
[merge]
tool = vimdiff
[mergetool "vimdiff"]
layout = LOCAL,BASE,REMOTE/MERGED + LOCAL,REMOTE/MERGED + (LOCAL/BASE/REMOTE),MERGED