-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathgitconfig
87 lines (70 loc) · 2.32 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
; vim: ft=gitconfig
; consider redoing based on this great .gitconfig
; https://gist.github.com/pksunkara/988716
; Load [user] details from a local file (not version controlled)
[include]
path=~/.gitconfig.local
;
; Don't use this since it messes up Plug installs in vim
; [url "ssh://[email protected]/"]
; insteadOf = https://github.com
[core]
editor = nvim
status = auto
branch = auto
interactive = auto
diff = auto
autocrlf = input # set to input on Mac/Linux, true on Windows
excludesfile = ~/.gitignore
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
pager = delta
[delta]
#features = side-by-side line-numbers decorations
features = line-numbers decorations
whitespace-error-style = 22 reverse
hunk-header-style = omit
[delta "decorations"]
file-style = bold yellow ul
file-decoration-style = none
[alias]
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
co = checkout
up = !git pull --rebase --prune --tags $@
save = !git add -A && git commit -m 'SAVEPOINT'
undo = reset HEAD~1 --mixed
amend = commit -a --amend
wipe = !git add -A && git commit -qm 'WIPE SAVEPOINT' && git reset HEAD~1 --hard
workflow = !open http://haacked.com/archive/2014/07/28/github-flow-aliases/
bclean = "!f() { git branch --merged ${1-master} | grep -v " ${1-master}$" | xargs git branch -d; }; f"
bdone = "!f() { git checkout ${1-master} && git up && git bclean ${1-master}; }; f"
delete-remote-stale-branches = !git branch -r --merged origin/master | sed -e 's/origin\\///' | grep -v master | xargs -p -n 1 git push origin --delete
list-remote-stale-branches = !git branch -r --merged origin/master | sed -e 's/origin\\///' | grep -v master
[push]
default = simple
[diff]
tool = difftastic
mnemonicprefix = true
rename = copy
[grep]
lineNumber = true
[color]
diff = auto
status = auto
branch = auto
interactive = auto
ui = true
pager = true
ui = true
[color "branch"]
current = yellow bold
local = green bold
remote = cyan bold
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[init]
defaultBranch = main
[credential]
helper=cache