-
Notifications
You must be signed in to change notification settings - Fork 0
/
_gitconfig
83 lines (80 loc) · 1.87 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
80
81
82
83
[include]
# pull machine-specific info I want to use on the machine
path = .gitconfig.d/user.txt
[color]
interactive = auto
ui = auto
branch = auto
[color "diff"]
added = green bold
changed = yellow bold
modified = yellow bold
untracked = red bold
[color "status"]
added = green bold
changed = yellow bold
modified = yellow bold
untracked = red bold
[core]
editor = vim
excludesfile = ~/.gitignore
autocrlf = input
safecrlf = false
fileMode = false
pager = diff-so-fancy | less --tabs=4 -RFX
[alias]
# general
aa = add --all
st = status
ci = commit
co = checkout
cp = cherry-pick
ls = ls-tree -r HEAD --name-only
pushall = push --recurse-submodules=on-demand
subup = submodule update
# branching
br = branch
bnew = checkout -b
# diff
diffs = diff --staged
diff-no-locks = diff -- ':!package-lock.json' ':!composer.lock' ':!Gemfile.lock' ':!pnpm-lock.yaml'
show = icdiff
today = diff --stat 'HEAD@{midnight}'
# logging
last = log -1
lc = log -p -1
logp = log --oneline -10
logpp = log --oneline -25
logppp = log --oneline -50
tree = log --color --graph --abbrev-commit --oneline -n 15
[push]
default = matching
[diff]
tool = kdiff3
[filter "hawser"]
clean = git hawser clean %f
smudge = git hawser smudge %f
required = true
[filter "lfs"]
clean = git lfs clean %f
smudge = git lfs smudge %f
required = true
[status]
submodulesummary = 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
[commit]
template = /Users/mike/.stCommitMsg
[icdiff]
options = --highlight --line-numbers
[user]
name = Michael Chadwick
email = [email protected]
[init]
defaultBranch = main
[github]
user = michaelchadwick