-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgitconfig
More file actions
50 lines (41 loc) · 1.08 KB
/
gitconfig
File metadata and controls
50 lines (41 loc) · 1.08 KB
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
[core]
editor = nvim
excludesfile = ~/.gitignore_global
pager = delta
[interactive]
diffFilter = delta --color-only
[delta]
navigate = true
syntax-theme = Dracula
[diff]
colorMoved = default
[color "status"]
untracked = cyan
[push]
default = current
[branch "master"]
mergeoptions = --no-ff
# use separate file for username / github token / etc
[include]
path = ~/.gitconfig.local
[alias]
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --
track = "!git branch --set-upstream-to=origin/`git symbolic-ref --short HEAD`"
# Show the diff between the latest commit and the current state
d = !"git diff-index --quiet HEAD -- || clear; git --no-pager diff --patch-with-stat"
[color]
ui = true
[color "diff-highlight"]
oldNormal = red bold
oldHighlight = red bold 52
newNormal = green bold
newHighlight = green bold 22
[color "diff"]
meta = 11
frag = magenta bold
commit = yellow bold
old = red bold
new = green bold
whitespace = red reverse
[init]
defaultBranch = main