mirror of
https://git.decapod.one/brethil/dotfiles
synced 2024-11-24 20:41:31 +01:00
40 lines
918 B
Plaintext
40 lines
918 B
Plaintext
# vi:syntax=gitconfig
|
|
#[core] # DEPRECATED: excludesfile should be in ~/.config/git/ignore
|
|
#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'"
|
|
flog = "!flog() { git log --oneline $@ | fzf --multi --preview 'git -p show --color=always {+1}' --preview-window=right,60% | awk '{print $1}'; }; flog"
|
|
taglist = "tag --list --sort=-creatordate --format=\"%(authordate:relative)%09│ %(refname:short)\""
|