-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitconfig
More file actions
83 lines (83 loc) · 1.77 KB
/
Copy path.gitconfig
File metadata and controls
83 lines (83 loc) · 1.77 KB
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
71
72
73
74
75
76
77
78
79
80
81
82
83
[core]
editor = nvim
excludesfile = ~/.gitignore
[user]
email = shinsugar@gmail.com
name = Shingo Sato
[alias]
st = status
cm = commit
co = checkout
br = branch
ad = add
ps = push
pl = pull
f = fetch
c = clean -fd
chp = cherry-pick
lg = log --decorate --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'
delete-merged-branches = !git branch --merged | grep -vE '^\\*|master$|develop$|main$' | xargs -I % git branch -d %
dm = delete-merged-branches
ds = dsb
bwc = "!f(){ ignore=${1:-(?!)}; user=${2:-"(sugarshin\\\\|(Shingo Sato"}; git ls-files | grep -v \"$ignore\" | xargs -n1 git --no-pager blame -f -w | grep \"${user}\" | wc -l;};f"
d = diff
dt = difftool
pso = !git push origin $(git rev-parse --abbrev-ref HEAD)
plo = !git pull origin $(git rev-parse --abbrev-ref HEAD)
b = !gh browse
copr = copr
[push]
default = simple
autoSetupRemote = true
followTags = true
[gpg]
program = gpg
[commit]
gpgsign = true
verbose = true
[ghq]
root = ~/dev/src
[pull]
ff = only
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[init]
defaultBranch = main
[include]
path = ~/.gitconfig.local
; example:
; [includeIf "gitdir:~/dev/src/foo.com/"]
; path = ~/dev/src/foo.com/.gitconfig
[diff]
tool = nvimdiff
algorithm = histogram
colorMoved = zebra
colorMovedWS = allow-indentation-change
[difftool]
prompt = false
trustExitCode = true
[rerere]
enabled = true
[rebase]
autoStash = true
autoSquash = true
updateRefs = true
[merge]
conflictStyle = zdiff3
[fetch]
prune = true
pruneTags = true
fsckobjects = true
[branch]
sort = -committerdate
[tag]
sort = version:refname
[column]
ui = auto
[help]
autocorrect = prompt
[pager]
diff = diffnav