1
0
mirror of https://git.decapod.one/brethil/dotfiles synced 2024-11-21 19:11:30 +01:00
dotfiles/gitconfig
2021-10-10 12:41:21 +02:00

37 lines
599 B
Plaintext

# vi:syntax=gitconfig
[core]
excludesfile = ~/.gitignore
#[init]
# templatedir = ~/.git_template
[pull]
ff = only
rebase = true
[merge]
ff = only
tool = vimdiff
[mergetool]
keepBackup = false
[diff]
tool = vimdiff
[difftool]
prompt=true
[rebase]
autostash = true
autosquash = true
squash = true
[log]
abbrevcommit = true
[format]
[alias]
showtool = "!showci () { rev=${1:-HEAD}; git difftool $rev~1 $rev; }; showci $1"
mylog = "log --pretty='format:👉 %C(yellow)commit: %h%C(auto)%d %Creset%nAuthor: %C(auto,cyan)%>(12)%an (%aE)%n%C(reset)Date: %C(auto,green)%ar%Creset%nContent: %s'"