-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitconfig-managed
108 lines (89 loc) · 2.54 KB
/
.gitconfig-managed
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
106
107
108
[user]
email = garry@robustsoftware.co.uk
name = Garry Shutler
[commit]
gpgsign = true
[gpg]
format = ssh
[color]
ui = auto
[core]
editor = nvim +startinsert
excludesfile = /Users/gshutler/.gitignore_global
[diff]
colorMoved = zebra
indentHeuristic = true
noPrefix = true
[fetch]
prune = true
[init]
defaultBranch = main
[log]
follow = true
[merge]
conflictstyle = diff3
defaultToUpstream = true
renamelimit = 9000
tool = vimdiff
[mergetool]
prompt = false
[push]
default = upstream
[rebase]
updateRefs = true
[rerere]
enabled = true
[alias]
a = add .
ap = add -p
amend = commit --amend
cached = diff --cached
c = commit --verbose
clean-merged = "!(git checkout $(git main-branch)) && git fetch --prune && (git branch --merged | grep -v '*' | grep -v 'main|master' | xargs -n 1 git branch -d) && (git branch --remotes --merged | grep -v '*' | grep -v 'main|master' | sed 's/origin\\///' | xargs -n 1 git push --delete origin) && git checkout -"
cm = commit --verbose
co = checkout
d = diff
dm = "!(git diff $(git main-branch)...)"
dms = "!(git diff --stat $(git main-branch)...)"
du = diff @{upstream} @
dw = diff -w
f = fetch --all
fall = fetch --all
ff = merge --ff-only
ffm = "!(git merge --ff-only $(git main-branch))"
ffo = merge --ff-only
l = log --graph --oneline --decorate
ll = log --graph --all --oneline --decorate
ma = "!(git checkout $(git main-branch))"
main = checkout main
master = checkout master
mp = "!(git checkout $(git main-branch)) && git pull --ff-only"
mt = mergetool
n = checkout -b
new = checkout -b
noff = merge --no-ff
nom = branch -vv --no-merged
p = push
pff-only = pull --ff-only --all
po = "!git push --set-upstream origin $(git rev-parse --abbrev-ref HEAD)"
pp = pull --ff-only --all
rc = rebase --continue
ri = rebase -i
rim = "!(git rebase -i $(git main-branch))"
rom = "!(git pull origin $(git main-branch) --rebase --interactive)"
ru = rebase -i @{upstream}
s = status --short
wip = for-each-ref --sort='authordate:iso8601' --format='%(color:green)%(authordate:format:''%a %b %d %H:%M'')\t%(color:white)%(refname:short)' refs/heads
[filter "media"]
clean = git-media-clean %f
smudge = git-media-smudge %f
[filter "lfs"]
clean = git-lfs clean %f
required = true
smudge = git-lfs smudge %f
[includeIf "gitdir:~/Code/cronofy/"]
path = .gitconfig-cronofy
[includeIf "gitdir:/Users/gshutler/Code/cronofy/"]
path = .gitconfig-cronofy
[includeIf "gitdir:/System/Volumes/Data/code/cronofy/"]
path = .gitconfig-cronofy