blob: 4f415f81c6bd833c80dd77a111bd503bc8b25c2a (
plain)
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
|
[user]
name = nsfisis
email = nsfisis@gmail.com
[core]
editor = vim
commentchar = ";"
excludesfile = ~/.gitignore_global
[help]
autocorrect = 1
[advice]
detachedhead = false
[color]
ui = true
[merge]
tool = vimdiff
ff = false
[rebase]
autosquash = true
[diff]
tool = vimdiff
[init]
defaultbranch = main
[mergetool]
keepbackup = false
[credential]
helper = osxkeychain
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[alias]
a = add
ap = add -p
b = branch
cb = rev-parse --abbrev-ref HEAD
c = commit
fixup = commit --fixup
amend = commit --amend --no-edit
clone1 = clone --depth=1
co = checkout
cob = checkout -b
# git rev-parse --verify --quiet main > /dev/null
# if [ $? = 0 ]; then
# git checkout main
# else
# git checkout master
# fi
com = "!git rev-parse --verify --quiet main > /dev/null; if [ $? = 0 ]; then git checkout main; else git checkout master; fi"
cod = checkout develop
d = diff
dc = diff --cached
g = grep
gf = grep --name-only
s = status --short
tmp = commit -a -m "TMP"
tmps = stash save "TMP"
ctmp = commit -m "TMP"
sst = stash save "TMP"
ss = stash save
ssl = stash list
ssa = stash apply
ssd = stash drop
ssp = stash pop
last = log --pretty=fuller -1
# git rev-parse --verify --quiet develop > /dev/null
# if [ $? = 0 ]; then
# git log --oneline develop..
# else
# git rev-parse --verify --quiet main > /dev/null
# if [ $? = 0 ]; then
# git log --oneline main..
# else
# git log --oneline master..
# fi
# fi
l = "!git rev-parse --verify --quiet develop > /dev/null; if [ $? = 0 ]; then git log --oneline develop..; else git rev-parse --verify --quiet main > /dev/null; if [ $? = 0 ]; then git log --oneline main..; else git log --oneline master..; fi; fi"
ll = log --oneline
logf = log --pretty=fuller
graph = log --oneline --graph
r = rebase
ri = rebase -i
rid = rebase -i develop
rc = rebase --continue
m = merge
mc = merge --continue
mm = mergetool
pullu = "!git pull upstream $(git cb) --ff"
pullo = "!git pull origin $(git cb) --ff"
pusho = "!git push origin $(git cb)"
cpick = cherry-pick
cpickc = cherry-pick --continue
empty = commit --allow-empty
|