-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
54 lines (43 loc) · 1.02 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
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[user]
name = Te4g
email = 47118498+Te4g@users.noreply.github.com
[core]
excludesfile = ~/.gitignore
editor = nvim
[alias]
# Commons.
co = checkout
cob = checkout -b
st = status
c = commit
cm = commit -m
cam = commit -am
br = branch
# Delete last commit.
undo = !git reset --soft HEAD~1
# Push head.
pushead = !git push origin HEAD
p = !git pushead
pf = !git pushead -f
# Rebase.
rb = "!f() { git rebase -i HEAD~$1; }; f"
rbc = !git rebase --continue
rba = !git rebase --abort
rbs = !git rebase --skip
rbmaster = !git co master && git pull && git co - && git rebase master
rbmain = !git co main && git pull && git co - && git rebase main
# Drop current changes.
drop = !git stash && git stash drop
# Show aliases.
aliases = !git config --get-regexp 'alias.*' | colrm 1 6 | sed 's/[ ]/ = /'
[pull]
rebase = true
[init]
defaultBranch = main
[branch]
autosetuprebase = always