-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
74 lines (74 loc) · 2.85 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
[user]
email = t.mcglinn@gmail.com
name = Tama McGlinn
[push]
default = current
recurseSubmodules = check
[core]
editor = nvr
autocrlf = input
excludesfile = ~/.gitignore
commitGraph = true
[alias]
h = rev-parse HEAD
d = branch -d
pullrebase = pull --rebase
D = branch -D
b = branch
rep = "!f() { git checkout -B $1 origin/$1 && git submodule update --init --recursive; }; f"
lges = log --pretty=oneline --abbrev-commit
lgnathan = log --color --graph --pretty=format:'%Cred%h%Creset%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue)<%an>%Creset' --abbrev-commit --all
lgs = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) %C(bold green)(%ar)%C(reset) %C(white)%<(50,mtrunc)%s%C(reset) %C(dim white)%<(12,trunc)%an%C(reset)%<(40,trunc)%C(bold yellow)%d%C(reset)' --all
lg = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(dim white) %an%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%<(114,mtrunc)%s%C(reset)' --all
tree = "!f() { forest --pretty=format:\"%C(red)%h %C(magenta)(%ar) %C(blue)%an %C(reset)%s\" --style=15; }; f"
s = status
su = submodule update --init --recursive
updateone = "submodule update --init --"
ss = submodule status --recursive
co = checkout
v = remote -v
cob = checkout -B
p = "!f() { git push --set-upstream origin --recurse-submodules=check `git branch | grep "^*" | cut -d' ' -f2`; }; f"
pl = pull
pf = "!f() { git push --force-with-lease --set-upstream origin --recurse-submodules=check `git branch | grep "^*" | cut -d' ' -f2`; }; f"
f = fetch --tags --all
cp = cherry-pick --no-commit
cpc = cherry-pick
chuck = "!f() { git checkout -- . && git clean -df; }; f"
c = commit -m
cm = commit --amend
cmn = commit --amend --no-edit
ca = commit -a -m
cap = "!f() { git commit -a -m \"$1\" && git push; }; f"
# From http://stackoverflow.com/questions/957928/is-there-a-way-to-get-the-git-root-directory-in-one-command#957978
top = "!f() { GIT_TOP=\"${GIT_DIR%%/.git/modules/*}\"; [ \".$GIT_TOP\" != \".$GIT_DIR\" ] && cd \"$GIT_TOP\"; exec \"$@\"; }; f"
exec = "!exec "
rename = branch -M
gerritpush = push origin HEAD:refs/for/master
sed = "!f() { git ls-files -z | xargs -0 sed -i -e \"$@\"; }; f"
children = "!f() { git log --format='%H %P' --all --reflog | grep -F \" $1\" | cut -f1 -d' '; }; f"
stat = show --stat --oneline
cp = "!f() { gitcopy \"$@\"; }; f"
wl = worktree list
wa = "!f() { gwa \"$@\"; }; f"
wr = worktree remove
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[merge]
renamelimit = 15000
conflictstyle = diff3
[cola]
spellcheck = false
[gc]
writeCommitGraph = true
[pull]
rebase = false
[status]
showUntrackedFiles = all
[init]
defaultBranch = main
[url "git@github.com:"]
insteadOf = https://github.com/