Open4
Gitの便利設定

WindowsでLFが勝手にCRLFに変わるのが嫌な時
warning: in the working copy of 'src-tauri/Cargo.toml', LF will be replaced by CRLF the next time Git touches it
っていうwarningがうざかったらやる
git config --global core.autoCRLF false

リモートで削除済みの追跡ブランチを削除するのが面倒な時
リモートブランチの削除毎にgit fetch --prune
や、git pull --prune
するのが億劫ならやる
git config --global fetch.prune true

デフォルトブランチ名をmainに統一したいとき
git config --global init.defaultBranch main

git push時のリモートブランチを自動で指定する
現在のブランチを同じ名前のリモートブランチにプッシュする
リモートブランチがなかったら作成される
git config --global push.default simple