/
.gitconfig
77 lines (76 loc) · 2.01 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
[core]
bare = false
editor = code -r -w
filemode = true
ignorecase = false
logallrefupdates = true
repositoryformatversion = 0
[init]
defaultBranch = main
[url "git@github.com:"]
insteadOf = "https://github.com/"
[sequence]
editor = code -r -w
[color]
branch = auto
diff = auto
interactive = auto
status = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
frag = magenta bold
meta = yellow bold
new = green bold
old = red bold
[color "status"]
added = yellow
changed = green
untracked = cyan
[alias]
# If the alias expansion is prefixed with an exclamation point, it will be treated as a shell command.
# If you want to run an external command, rather than a Git subcommand, start the command with a ! character
amend = commit --amend --no-edit
branches = for-each-ref --count=10 --sort=-committerdate --format=\"%(color:blue)%(authordate:relative)\t%(color:red)%(authorname)\t%(color:white)%(color:bold)%(refname:short)\" refs/remotes
cane = commit --amend --no-edit
commend = commit --amend --no-edit
ci = commit
co = checkout
credit = blame
di = diff
dw = diff --color-words
difflog = log -p
last = log -1 HEAD
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
praise = blame
st = status
uncommit= reset --soft HEAD^
undo = reset HEAD~1 --mixed
[apply]
whitespace = nowarn
[diff]
colorMoved = default
[push]
autoSetupRemote = true
default = current
[pull]
rebase = true
[github]
site = https://github.com
endpoint = https://api.github.com
oauth-token = SECRET
username = josephgrossberg
[user]
name = Joe Grossberg
email = josephgrossberg+github@gmail.com
initials = JG
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
# conditional github - https://utf9k.net/blog/conditional-gitconfig/
[includeIf "gitdir:~/src/peartherapeutics"]
path = ~/.pear-gitconfig