dotfiles/dot_config/git/config.tmpl

61 lines
989 B
Cheetah
Raw Permalink Normal View History

2024-01-16 14:13:53 +09:00
[user]
name = inkch
email = inkch@posteo.jp
2024-01-16 14:13:53 +09:00
[core]
excludesfile = ~/.config/git/ignore
editor = nvim
autocrlf = false
quotepath = false
2024-01-16 14:13:53 +09:00
[commit]
template = ~/.config/git/commitmsg
2024-01-16 14:13:53 +09:00
[init]
defaultBranch = main
2024-01-16 14:13:53 +09:00
[color]
status = auto
branch = auto
ui = auto
2024-01-16 14:13:53 +09:00
[diff]
renames = true
colorMoved = default
2024-06-25 13:53:53 +09:00
external = difft
2024-01-16 14:13:53 +09:00
[merge]
tool = nvimdiff
2024-01-16 14:13:53 +09:00
[mergetool "nvimdiff"]
prompt = false
keepBackup = false
cmd = "nvim -d $LOCAL $MERGED $REMOTE"
2024-01-16 14:13:53 +09:00
[status]
short = true
branch = true
2024-01-16 14:13:53 +09:00
[log]
graph = true
decorate = true
oneline = true
all = true
2024-01-16 14:13:53 +09:00
[alias]
s = status
fe = fetch
fa = fetch --all
co = checkout
cm = commit -m
cma = commit -am
emp = commit --allow-empty -m
br = branch
bra = branch -a
d = diff
2024-06-25 13:53:53 +09:00
l = log -p --ext-diff
ls = log --graph --decorate --oneline --date=iso
delete-merged-branch = "!git branch -l --merged main | rg -v \"(HEAD|main|\\*)\" | xargs -I % git branch -d %"
; vim: noet ft=gitconfig
; -*- indent-tabs-mode: t; tab-width: 4 -*-