-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitconfig
More file actions
40 lines (36 loc) · 1.04 KB
/
gitconfig
File metadata and controls
40 lines (36 loc) · 1.04 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
[user]
email = jishnu7@gmail.com
name = Jishnu Mohan
[includeIf "gitdir:~/git/"]
path = ~/.config/git/personal.config
[color]
ui = auto
pager = true
[alias]
tagcommit = !sh -c 'git rev-list $0 | head -n 1'
ignore = !git update-index --assume-unchanged
unignore = !git update-index --no-assume-unchanged
ignored = !git ls-files -v | grep ^[a-z]
dc = diff --cached
edit-unmerged = "!f() { git ls-files --unmerged ./ | cut -f2 | sort -u ; }; vim `f`"
edit-modified = "!f() { git ls-files --modified ./ | cut -f2 ; }; vim `f`"
contributors = !git shortlog -s -n
sl = "!git stash list | awk -F: '{ print $0; system(\"git stash show -p \" $1); }' -"
sb = status -sb
gp = "!git grep $1 -- ':!*.test.js' #"
[push]
default = simple
[diff]
tool = kitty
guitool = kitty.gui
[difftool]
prompt = false
trustExitCode = true
[difftool "kitty"]
cmd = kitty +kitten diff $LOCAL $REMOTE
[difftool "kitty.gui"]
cmd = kitty kitty +kitten diff $LOCAL $REMOTE
[core]
editor = vim
[url "git@github.com:"]
insteadOf = https://github.com/