-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
63 lines (62 loc) · 1.55 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
[user]
name = Yusuke Doi
email = [email protected]
[alias]
ad = add
b = branch
ba = branch -a
ca = commit -v --amend
cf = commit -v --fixup
cfH = commit -v --fixup=HEAD
ci = commit -v
co = checkout
cp = cherry-pick
cpr = !sh -c 'git cherry-pick $0~$1...$0'
cs = commit -v --squash=HEAD
ds = diff --staged
l = log --decorate
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
lga = log --graph --all --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
lr = log --reverse --decorate
lp = log -p --stat --decorate
lpr = log -p --stat --decorate --reverse
rh = reset HEAD^
ri = !sh -c 'git rebase -i HEAD~$0'
s = show
sc = shortlog -s # SCouter
st = status
serve = daemon --export-all --base-path=. --base-path-relaxed
in = !sh -c 'git log ..origin/${1:-master}'
out = !sh -c 'git log origin/${1:-master}..' -
[color]
ui = auto
[core]
excludesfile = ~/.gitignore_global
commentChar = ";"
[rebase]
autostash = true
autosquash = true
[ghq]
root = ~/src
[push]
default = current
autoSetupRemote = true
[pull]
ff = only
[init]
defaultBranch = main
templatedir = ~/.git_template/
[grep]
lineNumber = true
[advice]
detachedHead = false
# git-delta https://github.com/dandavison/delta
[core]
pager = delta
[interactive]
diffFilter = delta --color-only
[delta]
navigate = true
side-by-side = true
hyperlinks = true
hyperlinks-file-link-format = "vscode://file/{path}:{line}"