-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
63 lines (55 loc) · 1.57 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
[user]
name = Tony Yunker
email = [email protected]
[color]
ui = auto
interactive = true
status = true
branch = true
diff = true
[core]
editor = nvim
excludesfile = ~/.gitignore_global
pager = "diff-so-fancy | less --tabs=4 -RFX"
[rebase]
autosquash = true
autoStash = true
[pull]
rebase = false
[push]
default = tracking
autoSetupRemote = true
[init]
defaultBranch = main
[alias]
aa = add --all
aliases=!git config -l | grep '^alias' | cut -c 7- | sort
ap = add -p
b = branch
cheddar = commit --amend -CHEAD
ci = commit --verbose
co = checkout
cob = checkout -b
dc = diff --cached
doff = reset HEAD^
mup = "!git checkout master && git pull && git checkout -"
please = push --force-with-lease
ps = "!git push origin staging && git push staging staging:master"
psf = "!git push staging staging:master --force"
put = push origin HEAD -u
rbc = rebase --continue
rbi = rebase -i
rs = rebase --skip
st = status -sb
todo = "!git --no-pager diff -U0 main | rg 'TODO|debugger' | sed 's/^+//' | git --no-pager grep -nFf - 2> /dev/null"
uncommit = reset --soft HEAD^
unstage = reset
wip = "!git add . && git commit -m 'wip'"
changes = log --pretty=format:\"%h %cr %cn %Cgreen%s%Creset\" --name-status -25
ch = log --pretty=format:\"%C(yellow)%h %Cblue%>(12,trunc)%ad %Cgreen%<(15,trunc)%aN%Cred%d %Creset%s\" --date=relative
[credential "https://github.com"]
helper =
helper = !/opt/homebrew/bin/gh auth git-credential
[credential "https://gist.github.com"]
helper =
helper = !/opt/homebrew/bin/gh auth git-credential