-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
62 lines (61 loc) · 1.66 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
[user]
name = Pawel Kopiczko
email = [email protected]
[core]
excludesfile = ~/.gitignore_global
# The editor is set with GIT_EDITOR env var in ~/.envs.
#editor = nvim -c 'set spell'
#editor = "/usr/bin/code --wait"
pager = delta
[init]
templatedir = ~/.git_template
defaultBranch = main
[alias]
b = branch
bu = !git branch -u origin/$(git rev-parse --abbrev-ref HEAD)
c = commit
ca = commit --amend
clean-branches = !git branch | grep -v 'master|main' | xargs git branch -D
cleanup = !git remote prune origin && git gc && git clean -df && git stash clear
co = checkout
d = diff
dc = diff --cached
lg = log --graph --pretty=format:'%Cred%h%Creset %Cgreen%cn%Creset %C(yellow)%d%Creset %s %Cgreen%cr%Creset' --abbrev-commit --date=relative
main = !git checkout "$(git branch -l main master | sed 's/.* //')"
s = status -uall
sp = --paginate status -uall
ss = stash save
patch = !git --no-pager diff --no-color
patch-cached = !git --no-pager diff --cached --no-color
[color]
diff = auto
status = auto
branch = auto
ui = true
[pager]
branch = false
[push]
default = current
followTags = true
[github]
user = kopiczko
[filter "lfs"]
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
[url "[email protected]:"]
insteadOf = https://github.com/
[delta]
features = decorations navigate
light = false
line-numbers = true
# -+F will make make it work with less than one screen
# -+X will clear the terminal after quitting
# --clear-screen will clear terminal before starting
pager = less --tabs=8 -+F -+X --clear-screen
paging = always
tabs = 0
[pull]
rebase = false
# vim: tabstop=8 shiftwidth=8 noexpandtab