-
Notifications
You must be signed in to change notification settings - Fork 7
/
gitconfig
56 lines (45 loc) · 1.07 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
[user]
name = Thorsten Ball
email = mrnugget@gmail.com
[alias]
co = checkout
st = status
rh = reset HEAD
rhh = reset --hard HEAD
pu = pull
up = push
l = "!. ~/.githelpers && pretty_git_log"
la = "!git l --all"
lr = "!git l -30"
lra = "!git lr --all"
lg = "!git l -G $1 -- $2"
feature = !sh -c 'git checkout --no-track -b $0 origin/main'
ruf = "!. ~/.githelpers && remove_untracked_files"
tree = log --oneline --decorate --graph
# Taken from here: https://aaronbonner.io/post/80766268890/git-alias-to-simplify-setting-upstream-branch
sup = "!git branch --set-upstream-to=origin/`git symbolic-ref --short HEAD`"
[core]
excludesfile = ~/.gitignore
[color]
diff = auto
status = auto
branch = auto
ui = true
[push]
default = current
followTags = true
[remote]
pushDefault = origin
[branch]
autosetuprebase = always
[diff "gpg"]
binary = true
textconv = gpg -d --quiet --yes --compress-algo=none --no-encrypt-to --batch --use-agent
[commit]
verbose = true
[init]
defaultBranch = main
[pull]
rebase = true
[protocol "file"]
allow = always