-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
48 lines (48 loc) · 1.56 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
[core]
excludesfile = ~/.gitignore_global
editor = vim
[user]
name = Seth Deckard
email = [email protected]
[include]
# supports signingkey and other per-machine config
path = ~/.gitconfig.inc
[includeIf "gitdir:~/work/"]
# work-specific settings (override email, etc.)
path = ~/work/.gitconfig.inc
[advice]
skippedCherryPicks = false
[diff]
tool = vimdiff
mnemonicPrefix = true
submodule = diff
[difftool "diffmerge"]
cmd = diffmerge \"$LOCAL\" \"$REMOTE\"
[merge]
tool = diffmerge
[mergetool "diffmerge"]
cmd = "diffmerge --merge --result=\"$MERGED\" \"$LOCAL\" \"$(if test -f \"$BASE\"; then echo \"$BASE\"; else echo \"$LOCAL\"; fi)\" \"$REMOTE\""
trustExitCode = true
[pull]
ff = only
[push]
default = simple
autoSetupRemote = true
[init]
defaultBranch = main
templatedir = ~/.git_template
[commit]
gpgsign = true
[alias]
aliases = config --get-regexp "^alias\\."
br = for-each-ref --sort=-committerdate refs/heads/ --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(color:red)%(objectname:short)%(color:reset) - %(contents:subject) - %(authorname) (%(color:green)%(committerdate:relative)%(color:reset))'
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue)<%an>%Creset' --abbrev-commit
lgfix = log --grep="^Fix\\s*" --oneline --decorate
lgup = log --grep="^Upgrade\\s*" --oneline --decorate
staged = diff --staged
trash = branch -D
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true