forked from chytreg/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
55 lines (53 loc) · 1.33 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
[user]
email = [email protected]
name = Adam Hodowany
[color]
ui = auto
[alias]
g = ~git
st = status
ci = commit --verbose
co = checkout
di = diff
df = "!f() { [ -z \"$GIT_PREFIX\" ] || cd \"$GIT_PREFIX\" && git diff --color \"$@\" | diff-so-fancy | less --tabs=4 -RFX; }; f"
dc = diff --cached
amend = commit --amend
aa = add --all :/
ap = add --all :/ -p
ff = merge --ff-only
cp = cherry-pick
count = rev-list --count HEAD
head = !git l -1
h = !git head
hp = "!. ~/.githelpers && show_git_head"
r = !git l -30
ra = !git r --all
l = "!. ~/.githelpers && pretty_git_log"
la = !git l --all
up = pull --rebase --autostash
su = submodule update --recursive --remote
set-upstream = !git branch --set-upstream-to=origin/`git symbolic-ref --short HEAD`
permission-reset = !git diff -p -R --no-color | grep -E \"^(diff|(old|new) mode)\" --color=never | git apply
pushf = push --force-with-lease
[core]
editor = nvim
excludesfile = ~/.gitignore-global
[branch]
autosetuprebase = always
[merge]
ff = false
[rerere]
enabled = false
[push]
default = current
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[url "[email protected]:"]
insteadOf = https://github.com/
[http]
postBuffer = 157286400
[init]
defaultBranch = main