-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
63 lines (56 loc) · 1.31 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
[user]
name = Christian McCormick
email = [email protected]
[alias]
s = status
l = log --oneline
ll = log
d = diff
sh = show
co = checkout
b = co -b
bm = !git co master && git pl && git co -b
a = add
ap = add --patch
aa = add .
c = commit
aac = !git aa && git c
cf = commit --fixup
cfnrasr = !git cf HEAD && git rasr
m = merge
r = rebase
ri = "!f() { git rebase -i $1~; }; f"
rb = "!f() { commitsBack=${1-1}; git rebase -i HEAD~$commitsBack; }; f"
ras = rebase -i --autosquash
rasr = rebase -i --autosquash HEAD~2
rmr = rebase master
ra = rebase --abort
rc = rebase --continue
pl = pull
p = push
pub = push -u origin HEAD
fp = push --force-with-lease
cp = cherry-pick
rh1 = reset HEAD~1
rh = reset --hard
sr = !git fetch && git reset --hard origin/staging
aas = !git aa && git stash
snapshot = !git stash save "snapshot" && git stash apply
clean-branches = "!f() { git branch -vv | grep ': gone]' | grep -v '\\*' | awk '{ print $1; }' | xargs -r git branch -d; }; f"
[core]
editor = nvim
commentChar = ";"
excludesFile = "~/.gitignore"
[filter "lfs"]
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
[rebase]
autosquash = true
[init]
defaultBranch = main
[commit]
verbose = true
[push]
useForceIfIncludes = true