-
Notifications
You must be signed in to change notification settings - Fork 7
/
gitconfig.symlink
93 lines (93 loc) · 2.91 KB
/
gitconfig.symlink
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
[user]
name = George Gritsouk
email = 989898+gggritso@users.noreply.github.com
[alias]
comit = commit
commmit = commit
unstage = reset -q HEAD --
discard = checkout --
nevermind = !git reset --hard HEAD && git clean -d -f
uncommit = reset --mixed HEAD~
save = commit -m
mash = "!env LEFTHOOK=0 git commit -m"
resave = commit --amend -m
fold = commit --amend --no-edit
invert = revert
last = log -1 HEAD --format=format:"%Cred%H"
copy-last-hash = !git last | pbcopy
summary = status -u -s
graph = log --graph -10 --branches --remotes --tags --format=format:'%Cgreen%h %Creset• %<(75,trunc)%s (%cN, %ar) %Cred%d' --date-order
history = log -10 --format=format:'%Cgreen%h %Creset%s (%aN, %ar)'
new-branch = checkout -b
rename-branch = branch -m
delete-branch = branch -D
branches = "!git branch | ag -v '\\b(staging|master)\\b'"
recent-branches = branch -a --sort=committerdate
tags = tag
stashes = stash list
prestage = diff -w
precommit = diff -w --cached --color-moved
remotes = remote -v
move = mv
remove = rm
unmerged = branch --no-merged
unstash = stash pop
what = show
show-last = show HEAD
untrack = rm -r --cached
rewrite = rebase -i
back = checkout "-"
contributors = shortlog -s -n --no-merges
file-trail = log --follow -p -w
merge-trail = log --ancestry-path --merges
unmerged-files = diff --name-only
patch = add --patch
tuck = stash save -u
current-branch = rev-parse --abbrev-ref HEAD
untuck = stash pop "stash@{0}"
boop = "!f() { B=$(git current-branch); git commit --allow-empty -m 'Boop!'; git push origin $B; }; f"
aliases = !git config --get-regexp ^alias\\. | sed -e s/^alias\\.// -e s/\\ /\\:\\ /
autotrack = "!f() { B=$(git current-branch); git branch --set-upstream-to=origin/$B; }; f"
into = "!f() { B=$(git current-branch); git checkout $1; git pull; git merge $B --no-edit; }; f"
into-staging = "!f() { B=$(git current-branch); git checkout staging; git pull; git merge $B --no-edit; }; f"
into-master = "!f() { B=$(git current-branch); git checkout master; git pull; git merge $B --no-edit; }; f"
onto = "!f() { B=$(git current-branch); git checkout master; git pull; git checkout $B; git rebase -i $1; }; f"
work-log = !git log --reverse master...HEAD --format=format:'- %w(0,0,4)%B'
submit = !git push && git autotrack
whodunit = blame -wMC
axe = log --reverse -p -w -S
[color]
ui = auto
[advice]
statusHints = false
[diff]
compactionHeuristic = true
indentHeuristic = true
algorithm = patience
colorMoved = true
[pager]
diff = less
log = less
show = less
[blame]
date = relative
[push]
default = current
[pull]
ff = only
[core]
editor = nvim
precomposeunicode = true
excludesfile = ~/.gitignore_global
untrackedCache = true
commentchar = ";"
[credential]
helper = osxkeychain
[merge]
conflictstyle = zdiff3
[mailmap]
file = ~/.mailmap
[commit]
verbose = true
[init]
defaultBranch = main