-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
74 lines (69 loc) · 1.98 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
[core]
excludesfile = ~/.gitignore
editor = ~/Applications/nvim.appimage
ignorecase = false
# protect your project from Windows line endings creeping in
autocrlf = input
[user]
name = Adrien
email = [email protected]
[color]
ui = auto
[alias]
aa = add --all
amend = commit --amend
arc = !git aa && git rc
b = branch -v
ci = commit --verbose
co = checkout
commend = commit --amend --no-edit
ctags = !.git/hooks/ctags
dc = diff --color --cached
d = difftool
di = diff --color
fa = fetch --all
fix = !git di --name-only | uniq | xargs $EDITOR
p = push
pf = push --force-with-lease
pick = cherry-pick
pom = push origin main
pum = push upstream main
ra = rebase --abort
rc = rebase --continue
ri = rebase --interactive
st = status
staash = stash --include-untracked
r = !git l -10
l = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
tags = "for-each-ref --sort=taggerdate --format='%(color:green)%(subject)%(color:reset), tagged: %(color:yellow)%(refname:short)%(color:reset)\n%(taggerdate)\n%(taggername) %(taggeremail)\n\n%(contents:body)\n' refs/tags"
changelog = "!echo 'Changelog'; git --no-pager log ${1:-$(git describe --tags --abbrev=0)}..HEAD --format='- %s'"
bleach = "!git branch | grep -v -E 'main|master' | xargs git branch -D"
[merge]
tool = nvimdiff
[diff]
tool = nvimdiff
[pull]
default = current
[push]
default = current
[difftool]
prompt = false
[difftool "nvimdiff"]
cmd = "$EDITOR -d \"$LOCAL\" \"$REMOTE\""
[github]
token = 318ac7f82fedc1e5c2d0d3e75d7d34b2e7e8ff91
user = AdrienGiboire
[color "diff-highlight"]
oldNormal = red bold
oldHighlight = red bold 52
newNormal = green bold
newHighlight = green bold 22
[init]
templatedir = ~/.git_template
defaultBranch = main
[filter "ignoreKey"]
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true