Git
https://git-scm.com/images/logos/downloads/Git-Icon-1788C.png
code:.gitconfig
alias
st = status
co = checkout
cm = commit
sw = switch
br = branch
df = diff
core
pager = delta
delta
plus-style = "syntax #012800"
minus-style = "syntax #340001"
syntax-theme = Monokai Extended
navigate = true
interactive
diffFilter = delta --color-only
指定のディレクトリ配下で特定の設定を追加で読み込む
には以下のような設定を書く。設定は読み込んだ箇所がその時点から積み上げになる。
code:.gitconfig_for_workspace
includeIf "gitdir:~/path/to/dir/**"
path = ~/path/to/dir/.gitconfig
この場合 ~/path/to/dir/.gitconfig に記載されている内容が includeIf を記載した箇所に展開されて適用されるようなイメージ。特定のディレクトリ配下で、email や username を変更したいときに便利に使える。