-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitconfig
More file actions
79 lines (78 loc) · 2.41 KB
/
Copy pathgitconfig
File metadata and controls
79 lines (78 loc) · 2.41 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
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
[user]
name = sanp
email = sanpietro.steve@gmail.com
[core]
editor = nvim
excludesfile = ~/.gitignore_global
[credential]
helper = osxkeychain
[push]
default = simple
[pull]
rebase = false
[pager]
branch = false
[alias]
last = log -1 HEAD
logg = log --pretty=format:\"%h - %an, %ar : %s\"
graph = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset%n' --abbrev-commit --date=relative --branches
unstage = reset HEAD --
st = status
co = checkout
ci = commit
br = branch
rb = rebase
sm = submodule
lf = ls-files
lfo = ls-files -o --exclude-per-directory=.gitignore
lola = log --graph --decorate --pretty=oneline --abbrev-commit --name-status
bra = branch --sort=-committerdate
brd = branch --sort=committerdate
brdate = for-each-ref --sort=-committerdate refs/heads/ --format='%(committerdate:short) - %(refname:short)'
[color]
ui = true
[color "diff"]
meta = yellow
frag = magenta # line info
old = red # deletions
new = green # additions
whitespace = red reverse
[diff]
tool = nvim
guitool = diffmerge
submodule = log
algorithm = patience
indentHeuristic = true
[difftool]
prompt = false
[difftool "nvim"]
cmd = nvim -d $LOCAL $REMOTE -c 'wincmd l'
[difftool "diffmerge"]
cmd = "/Applications/DiffMerge.app/Contents/Resources/diffmerge.sh --nosplash \"$LOCAL\" \"$REMOTE\""
[merge]
# tool = nvim
; tool = vim_mergetool
; guitool = diffmerge
tool = diffmerge
submodule = log
algorithm = patience
indentHeuristic = true
conflictstyle = diff3
[mergetool]
prompt = false
keepBackup = false
trustExitCode = true
[mergetool "vim_mergetool"]
cmd = nvim -f -c "MergetoolStart" "$MERGED" "$BASE" "$LOCAL" "$REMOTE" -c ':1'
[mergetool "nvim"]
# cmd = nvim -d $MERGED $LOCAL $BASE $REMOTE -c 'wincmd J'
# cmd = nvim -d $MERGED $LOCAL $BASE $REMOTE -c 'wincmd J' -c 'wincmd k' -c 'wincmd l' -c 'resize 40'
cmd = nvim -d $LOCAL $MERGED $REMOTE -c 'wincmd l'
[mergetool "diffmerge"]
cmd = "/Applications/DiffMerge.app/Contents/Resources/diffmerge.sh --merge --result=\"$MERGED\" \"$LOCAL\" \"$BASE\" \"$REMOTE\""
# In order to override username and email for work github accounts, store
# work info in separate .local-giconfig file. Should have a [name] block.
# Important that this include is at the bottom of this file in order to
# ensure that it overrides the above settings.
[include]
path = ~/.local-gitconfig