forked from milagre/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitconfig
63 lines (49 loc) · 1.5 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
[alias]
aa = add -A
b = branch -vv
bd = branch -d
bD = branch -D
bg = "!git b | grep gone"
ci = commit
cia = commit --amend
cif = commit --fixup
ciaa = commit -a --amend
ciaf = commit -a --fixup
co = checkout
com = checkout main
cp = cherry-pick
d = diff
dc = diff --cached
dh = diff HEAD~1
dw = diff -w
dm = diff main..
f = fetch -p --all --tags
l1 = log --oneline
l1b = "!git log --oneline $(git merge-base HEAD @{-1}).."
p = pull
pr = pull --rebase
pushu = "!git push -u origin `git symbolic-ref --short HEAD`"
r = "!git rebase -i $(git merge-base HEAD @{-1})"
ras = "!git rebase -i $(git merge-base HEAD @{-1}) --autosquash"
raac = "!git aa; git rc"
ra = rebase --abort
rc = rebase --continue
st = status
up = "!git com && git p && git f"
purge = "!git f && git bg | cut -f1-3 -d ' ' | xargs git bd"
pup = "!git up && git purge"
remain ="!git com && git p && git co - && git rebase origin/main"
[user]
name = Justin Johnson
email = booleangate@gmail.com
#signingkey = 730F8D5221649966
[push]
default = simple
[pull]
rebase = true
[commit]
#gpgsign = true
[gpg]
program = gpg
[init]
defaultBranch = main