-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgitconfig
43 lines (43 loc) · 1.19 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
31
32
33
34
35
36
37
38
39
40
41
42
43
[alias]
sweep = "!git branch --merged | grep -v '\\*\\|master\\|main\\|develop' | xargs -n 1 git branch -d"
co = checkout
st = status
ci = commit
df = diff
dfc = diff --cached
track = "!git branch --set-upstream-to=origin/`git symbolic-ref --short HEAD`"
[core]
excludesfile = ~/.gitignore_global
editor = vim
pager = delta
[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
# [user]
# name = CivilCode Pairing
# email = [email protected]
[commit]
template = ~/.gitmessage
cleanup = strip
[include]
path = ~/.gitconfig.local
[push]
default = current
[credential]
helper = cache --timeout=3600
[pull]
rebase = false
[init]
defaultBranch = main
[interactive]
diffFilter = delta --color-only
[delta]
navigate = true # use n and N to move between diff sections
light = true # set to true if you're in a terminal w/ a light background color (e.g. the default macOS terminal)
[merge]
conflictstyle = diff3
[diff]
colorMoved = default