forked from brandonchinn178/config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
53 lines (44 loc) · 1.1 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
[user]
name = Brandon Chinn
email = brandon@leapyear.io
[core]
pager = delta
excludesFile = "~/.gitignore"
[interactive]
diffFilter = delta --color-only
[rebase]
autoSquash = true
missingCommitsCheck = error
abbreviateCommands = true
[push]
default = current
[alias]
fixup = commit --fixup
fixup-fzf = !git l | fzf | awk '{ print $1 }' | xargs -I {} git fixup {}
squash = commit --amend --no-edit
touch = commit --amend -C HEAD --date now --no-verify --allow-empty
diff-plain = -c 'pager.diff=less -FX' diff
show-plain = -c 'pager.show=less -FX' show
l = !git --no-pager bb-log --oneline
ll = log --oneline
s = status -sb
c = checkout
cb = bb-make-branch
mvb = bb-rename-branch
bd = bb-delete-branch
bD = bb-delete-branch -D
p = push --force-with-lease
pd = !git pull && git delete-merged
wip = !git add -A && git commit -m '[ci skip] wip' --no-verify
rc = rebase --continue
cp = cherry-pick
is-in-repo = !git rev-parse --is-inside-work-tree &> /dev/null
copy-sha = !git rev-parse HEAD | tr -d '\n' | pbcopy
[merge]
conflictstyle = diff3
[advice]
detachedHead = false
[init]
defaultBranch = main
[rerere]
enabled = true