-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
51 lines (48 loc) · 1.25 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
[user]
name = Bradley Yeo Kian
email = [email protected]
signingkey = A9F84A0B0AEDC3F9B59B6C8E75D3F8C28DC26830
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[push]
default = current
autoSetupRemote = true
[init]
defaultBranch = main
templateDir = /Users/bradleyyeo/.git-template
[pull]
rebase = true
ff = only
[rebase]
autosquash = true
[rerere]
enabled = true
[help]
autocorrect = prompt
[diff]
algorithm = histogram
[credential]
helper = store --file ~/.git-credentials
[fetch]
writeCommitGraph = true
[alias]
fpush = push
lol = log --graph --oneline --decorate --color --all --pretty=format:'%h %ad - %s' --date=short
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`"
cm = commit -am
[http]
postBuffer = 120000000
[core]
editor = code --wait