-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
30 lines (26 loc) · 1.08 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
# delta pager config starts
# source https://github.com/dandavison/delta#get-started
[core]
pager = delta
[interactive]
diffFilter = delta --color-only
[delta]
navigate = true # use n and N to move between diff sections
light = false # set to true if you're in a terminal w/ a light background color (e.g. the default macOS terminal)
side-by-side = true # display a side-by-side diff view instead of the traditional view
[merge]
conflictstyle = diff3
[diff]
colorMoved = default
# delta pager config ends
#
[user]
name = Sankalp Khare
[alias]
# source: https://dev.to/chilcutt/smarter-git-checkout-with-fzf-2k5n
cof = !git for-each-ref --format='%(refname:short)' refs/heads | fzf | xargs git checkout
# source: https://twitter.com/tenderlove/status/1392957802163802112?s=12
recent = branch --sort=-committerdate --format=\"%(committerdate:relative)%09%(refname:short)\"
# source: https://dev.to/tastefulelk/conditional-git-profile-configuration-212b
[includeIf "gitdir:~/code/github.com/sankalp-khare/"]
path = ~/code/github.com/sankalp-khare/.gitconfig-personal