/
.gitconfig
71 lines (57 loc) · 1.42 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
64
65
66
67
68
69
70
[push]
default = simple
autoSetupRemote = true
[color]
ui = true
[core]
excludesfile = ~/.gitignore_global
autocrlf = false
ignorecase = false
quotepath = false
safecrlf = true
pager = diff-so-fancy | less --tabs=4 -RF
editor = nvim
[alias]
co = checkout
br = branch
ci = commit
cm = commit -m
st = status -sb
cp = cherry-pick
sw = switch
swc = switch -c
rs = restore
rss = restore --staged
df = diff
dfs = diff --staged
dv = difftool -t vimdiff -y
rv = remote -v
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
hist = log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short
graph = log --graph --date-order --all --pretty=format:'%h %Cred%d %Cgreen%ad %Cblue%cn %Creset%s' --date=short
last = log -1 HEAD
se = !git rev-list --all | xargs git grep -F
dmb = ! git branch --merged | grep -v \\* | grep -v -E '\\b(master|main|develop)\\b' | xargs -n 1 git branch -d
[user]
useConfigOnly = true
email = kohii.tokyo@gmail.com
name = kohii
[difftool]
prompt = false
[url "git@github.com:"]
insteadOf = https://github.com/
insteadOf = git://github.com/
[ghq]
root = ~/dev/src
[interactive]
diffFilter = diff-so-fancy --patch
[pull]
rebase = false
[branch "master"]
mergeOptions = --ff-only
[branch "main"]
mergeOptions = --ff-only
[branch "develop"]
mergeOptions = --ff-only
[init]
defaultBranch = main