-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitconfig
38 lines (38 loc) · 1.24 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
[user]
name = Kirk Elifson
email = [email protected]
[alias]
aa = add --all
amend = commit --amend
cane = commit --amend --no-edit
ci = commit --verbose
co = checkout
dc = diff --cached
dom = diff origin/master
domain = diff origin/main
fa = fetch --all
fap = fetch --all --prune
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
rom = rebase origin/master
romain = rebase origin/main
st = status
nuke = "!f() { git branch -D $1; git push origin :$1; }; f"
change-commits = "!f() { VAR=$1; OLD=$2; NEW=$3; shift 3; git filter-branch --env-filter \"if [[ \\\"$`echo $VAR`\\\" = '$OLD' ]]; then export $VAR='$NEW'; fi\" $@; }; f "
recent = branch --sort=-committerdate --format=\"%(committerdate:relative)%09%(refname:short)\"
set-upstream = !git branch --set-upstream-to=origin/$(git symbolic-ref --short HEAD)
[color]
ui = auto
[merge]
tool = vimdiff
[push]
default = current
autoSetupRemote = true
[core]
whitespace = trailing-space,space-before-tab,blank-at-eol,blank-at-eof,cr-at-eol
[pull]
ff = only
[filter "lfs"]
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process