-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
executable file
·51 lines (40 loc) · 990 Bytes
/
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
# vim: set et ts=2 sw=2 :
[alias]
cm = commit -m
amend = commit --amend
ff = merge --ff-only
l = log --oneline --graph
s = status -sb
pub = push origin HEAD --force-with-lease
main = "!git remote show origin | sed -n '/HEAD branch/s/.*: //p'"
nuke = update-index --force-remove
squash = "!git rebase -v -i $(git main)"
sync = "!git pull origin $(git main) --rebase"
unstage = restore --staged
untrack = rm --cached
update = "!git pull origin $(git rev-parse --abbrev-ref HEAD) --rebase"
[branch]
sort = -committerdate
[tag]
sort = taggerdate
[commit]
verbose = true
[diff]
algorithm = histogram
[help]
autocorrect = prompt
[merge]
autoStash = true
conflictStyle = zdiff3
rebase = true
[rebase]
autoStash = true
[status]
showUntrackedFiles = all
[color "diff"]
commit = bold
[color "grep"]
filename = "default"
linenumber = "default"
match = "default 11"
separator = "default"