-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
34 lines (31 loc) · 1015 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
29
30
31
32
33
34
[user]
name = Arpit Batra
email = [email protected]
# Don't allow commits without setting up name and email
useConfigOnly = true
[core]
excludesfile = ~/.gitignore
# mac os is case insensitive,
# but that can make file renames with just a case change problematic on case sensitive file systems such as linux
ignorecase = false
[push]
# Set upstream to current while pushing new branches
# This assumes that the remote and local branches have the same name, which is often in my case
# helps with just doing git push -u, on a new branch
default = current
[pull]
# rebase while pulling
rebase = false
[init]
defaultBranch = main
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[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