-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
28 lines (23 loc) · 789 Bytes
/
.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
[core]
pager = less -FRX
# git config --global core.excludesfile ~/.gitignore_global
excludesfile = ~/.gitignore_global
[difftool "sourcetree"]
cmd = opendiff \"$LOCAL\" \"$REMOTE\"
path =
[mergetool "sourcetree"]
cmd = /Applications/Sourcetree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
trustExitCode = true
[url "[email protected]:"]
insteadOf = https://github.com/
[submodule]
recurse = false
[alias]
# https://git-scm.com/book/en/v2/Git-Tools-Submodules#Useful-Aliases
sdiff = !git diff && git submodule foreach 'git diff'
spush = push --recurse-submodules=on-demand
supdate = submodule update --remote --merge
[url "https://"]
insteadOf = git://
[url "ssh://"]
insteadOf = https://