-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
86 lines (62 loc) · 1.58 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
[alias]
s = status --short --branch
ss = status
a = add
ac = add .
cl = clone
co = checkout
cob = checkout -b
c = commit
cm = commit --message
cam = commit --all --message
caa = commit --all --amend --no-edit
amn = commit --amend --no-edit
amm = commit --amend --message
pl = pull
ps = push
psf = push --force
pso = push --set-upstream origin HEAD
psu = "!gpsu() { upstream=${1-upstream}; \\git push --set-upstream $upstream HEAD; }; gpsu"
st = stash
sp = stash push
sa = stash pop
sl = stash list
b = branch
d = diff
dn = !git --no-pager diff --name-only
ds = diff --cached
l = !"l() { git --no-pager log -${1-1}; }; l"
ll = log
tree = log --oneline --graph --decorate --all
graph = log --oneline --graph --decorate --all
ignore = "!gi() { curl -L -s https://www.gitignore.io/api/$@; }; gi >> .gitignore"
ri = rebase -i
re = rebase
remaster = rebase master
ini = init
gone = ! "git fetch -p && git for-each-ref --format '%(refname:short) %(upstream:track)' refs/heads | awk '$2 == \"[gone]\" {print $1}' | xargs -r git branch -D"
[push]
followTags = true
[rebase]
autoStash = true
[color]
ui = true
[core]
pager = diff-so-fancy | less -RFX
[diff-so-fancy]
markEmptyLines = false
stripLeadingSymbols = false
[filter "lfs"]
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f
[pull]
rebase = false
[init]
defaultBranch = master
[url "ssh://git@github.com/"]
insteadOf = https://github.com/
[include]
# Allow passing custom configs to Git outside of the dotfiles
path = ~/.local/.gitconfig