-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
46 lines (38 loc) · 1.34 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
[alias]
logtree = log --graph --all --pretty=format:'%C(yellow)%h %C(auto)%d %Creset%s %Cblue%an %Cgreen%ad' --date=short
logdiff = log -p -n
cleanbranch = remote update origin --prune
logline = log --oneline
fixup = "!git commit -m 'fix' && git rebase -i HEAD~\"$((${1}+1))\" #"
gone = ! git fetch -p && git for-each-ref --format '%(refname:short) %(upstream:track)' | awk '$2 == \"[gone]\" {print $1}' | xargs -r git branch -D
remaster = ! git switch master && git pull && git gone
remain = ! git switch main && git pull && git gone
pfwl = push --force-with-lease
datecommit = !git commit -m \"$(date '+%Y-%m-%d %H:%M')\"
oopsie = commit --amend --no-edit
[commit]
template = ~/.gitmessage
[core]
pager = delta
editor = nvim
excludesfile = ~/.gitignore
# Display UTF-8 characters in filenames, if you're having problems seeing them
quotepath = false
[diff]
tool = vimdiff
[user]
email = [email protected]
name = Tommaso Sardelli
[pull]
rebase = true
[interactive]
diffFilter = delta --color-only
[delta]
features = side-by-side line-numbers decorations
whitespace-error-style = 22 reverse
[delta "decorations"]
commit-decoration-style = bold yellow box ul
file-style = bold yellow ul
file-decoration-style = none
[init]
defaultBranch = main