はじめに
Twitterで見かけて、気になったので使ってみることにする。
同僚氏に教えてもらったコレ、gitの差分が見やすすぎて大変ハッピーになれた
— 94 (@kyu08_) February 28, 2023
lazygitとも連携できて本当に良いhttps://t.co/gEai5aSbvP
インストール
$ brew install git-delta
設定
以下の内容を~/.gitconfig
に追記する(これ)
[core] pager = delta [interactive] diffFilter = delta --color-only --features=interactive [delta] features = decorations [delta "interactive"] keep-plus-minus-markers = false [delta "decorations"] commit-decoration-style = blue ol commit-style = raw file-style = omit hunk-header-decoration-style = blue box hunk-header-file-style = red hunk-header-line-number-style = "#067a00" hunk-header-style = file line-number syntax
ここまでするだけでgit diff
やgit show
の見た目がかなり変わる。
オプションも色々あるようなので、今度試してみる。
終わり。