-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitconfig
More file actions
33 lines (32 loc) · 1.06 KB
/
gitconfig
File metadata and controls
33 lines (32 loc) · 1.06 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
[user]
name = Joe Lewis
email = fake@fake.com
[alias]
unstage = "reset HEAD --"
# Show branches with the most recent commits
rb = "for-each-ref --sort='-committerdate' refs/heads/ --count 7 --format='%(HEAD) %(color:blue)%(refname:short)%(color:reset) (%(color:green)%(committerdate:relative)%(color:reset))'"
praise = blame
lb = !git reflog | egrep -io 'moving from ([^[:space:]]+)' | awk '{ print $3 }' | awk ' !x[$0]++' | egrep -v '^[a-f0-9]{40}$' | head -n100
coi = !git checkout $(git lb | fzf | xargs)
[core]
excludesfile = ~/.gitignore
editor = nvim
; pager = diff-so-fancy | less --tabs=4 -RFX
pager = delta
[interactive]
diffFilter = delta --color-only
[push]
default = nothing
[merge]
tool = vimdiff
[mergetool]
prompt = true
[mergetool "vimdiff"]
cmd = nvim -d $BASE $LOCAL $REMOTE $MERGED -c '$wincmd w' -c 'wincmd J'
[delta]
navigate = true # use n and N to move between diff sections
light = true
sytax-theme = GitHub
keep-plus-minus-markers = true
[init]
defaultBranch = main