-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
56 lines (43 loc) · 1.73 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
[user]
email = [email protected]
name = Isaac Cambron
signingkey = 021A8C4869230EC2
[push]
default = simple
autoSetupRemote = true
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
required = true
process = git-lfs filter-process
[core]
excludesfile = /Users/isaac/.gitignore_global
#[interactive]
# diffFilter = delta --color-only
[diff]
tool = difftastic
[difftool]
prompt = false
[difftool "difftastic"]
cmd = difft "$LOCAL" "$REMOTE"
[pager]
difftool = true
[add.interactive]
useBuiltin = false # required for git 2.37.0
[delta]
navigate = true # use n and N to move between diff sections
light = false # set to true if you're in a terminal w/ a light background color (e.g. the default macOS terminal)
[diff]
colorMoved = default
# most stuff below stolen from https://github.com/mpercy/Dotfiles/blob/master/gitconfig
[alias]
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s - %an %Cgreen(%cr)%Creset' -n15
lgs = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s - %an %Cgreen(%cr)%Creset' -n5 --stat
br = for-each-ref --sort=committerdate refs/heads/ --format='%(HEAD) %(color:red)%(objectname:short)%(color:reset) %(color:yellow)%(refname:short)%(color:reset)\t %(contents:subject) - %(authorname) %(color:green)(%(committerdate:relative))%(color:reset)'
oldest-ancestor = !bash -c 'diff -u <(git rev-list --first-parent "${1:-master}") <(git rev-list --first-parent "${2:-HEAD}") | sed -ne \"s/^ //p\" | head -1' -
dft = difftool
dm = difftool -d --no-symlinks master..HEAD
[commit]
template = /Users/isaac/.stCommitMsg
[rebase]
instructionFormat = (%an <%ae>) %s