-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitconfig
More file actions
89 lines (89 loc) · 2.28 KB
/
.gitconfig
File metadata and controls
89 lines (89 loc) · 2.28 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
84
85
86
87
88
89
[user]
name = mitto nagisa
email = mitto@mittostar.info
[core]
excludesfile = ~/.gitignore_global
editor = vim
preloadindex = true
fscache = true
pager = LESSCHARSET=utf-8 less
quotePath = false
[push]
default = simple
autoSetupRemote = true
[alias]
a = add
ap = add -p
b = branch --format='%(if)%(HEAD)%(then)*%(else)%(if)%(worktreepath)%(then)+%(else) %(end)%(end) %(if)%(HEAD)%(then)%(color:green)%(else)%(if)%(worktreepath)%(then)%(color:cyan)%(end)%(end)%(refname:short)%(color:reset) - %(committerdate:relative) %(color:yellow)%(upstream:track)%(color:reset)%(if)%(worktreepath)%(then)%(if)%(HEAD)%(then)%(else) %(color:magenta)(%(worktreepath))%(color:reset)%(end)%(end)'
back = reset HEAD^
bd = branch -D
bf = branch -f
bm = !git branch --merged | grep -Ev '^[*+]|^\\s*(main|develop|master)$' | sed 's/^\\s*//'
bmd = !git bm | xargs git branch -d
c = commit
ca = commit --amend
cb = checkout -b
cm = commit -m
co = checkout
d = diff
extraline = log --oneline --graph --pretty=format:'%C(Yellow)%h %Cgreen%cd %Cblue%cn %C(magenta)%an %Cred%d %Creset%s' --date local --decorate --stat
f = fetch
fa = fetch --all
g = grep
gc = grep -C
gr = grep -r
graph = log --decorate --graph --oneline --stat
grc = grep -r -C
glog = log --graph --pretty=fuller --decorate
last = log -1 HEAD
me = !git config --get-regexp user
oneline = log --oneline --graph --pretty=format:'%C(Yellow)%h %Cgreen%cd %Cblue%cn %Cred%d %Creset%s' --date relative --decorate
p = pull
pf = push -f
r = remote
ra = remote add
rb = rebase
rbi = rebase -i
rs = remote set-url
rsp = remote set-url --push
rr = remote rm
sh = show
sa = stash --apply
sd = diff --staged
st = status
stsh = stash
stsha = stash apply
unstage = reset HEAD --
[help]
autocorrect = 1
[color]
ui = true
[include]
path = ~/.gitconfig.local
[pager]
log = diff-highlight | less
show = diff-highlight | less
diff = diff-highlight | less
[diff]
compactionHeuristic = true
[interactive]
diffFilter = diff-highlight
[pull]
rebase = false
[log]
follow = true
[fetch]
prune = true
[filter "lfs"]
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
[init]
defaultBranch = main
[blame]
ignoreRevsFile = .git-blame-ignore-revs
[grep]
lineNumber = true
[branch]
sort = -committerdate