-
Notifications
You must be signed in to change notification settings - Fork 3
/
.gitconfig
79 lines (78 loc) · 1.93 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
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
# to edit: sudo chflags noschg ~/.gitconfig && sudo chown `whoami` ~/.gitconfig
# to lock: sudo chown root ~/.gitconfig && sudo chflags schg ~/.gitconfig
[core]
autocrlf = false
excludesfile = ~/.gitignore_global
pager = diff-so-fancy | less --tabs=4 -RFX
whitespace = trailing-space,space-before-tab
[push]
default = tracking
[diff]
prompt = false
renames = copies
colorMoved = zebra
[alias]
b = !git rev-parse --abbrev-ref HEAD
br = branch
ca = commit --amend --no-verify
cav = commit --amend --verify
ci = commit --no-verify
civ = commit --verify
cl = clone
co = checkout
cp = cherry-pick
f = fetch --prune
find = "!git ls-files | grep --color -Ei"
ph = push
pl = pull
r = reset
s = status -uno
su = status
undo = reset HEAD~1 --soft
wdiff = diff --color-words --word-diff
rspec = run 'bin/rspec' '_spec\\.rb$'
jest = run 'jest --config jest.config.js --' '_spec\\.js$|_spec\\.ts$'
pytest = run 'pytest -vv -x' 'test_.*\\.py'
potest = run 'poetry run pytest -vv -x' 'test_.*\\.py'
[color]
ui = true
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
commit = yellow bold
frag = magenta bold
meta = yellow
new = green bold
old = red bold
whitespace = red reverse
[color "status"]
added = yellow
changed = green
untracked = cyan
[advice]
pushNonFastForward = false
[branch]
autosetuprebase = always
[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]
useconfigonly = true
[credential]
helper = osxkeychain
[includeIf "gitdir:~/source/"]
path = .gitconfig-user
[includeIf "gitdir:~/source/gitlab/"]
path = .gitconfig-user-gitlab
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[init]
defaultBranch = main