【terraform/.tool-versions などを git で無視する】
.git/info/exclude に追記する
.gitignore
に書く必要がなく、自分の環境だけで特定のファイルを無視することができる
$ vim .git/info/exclude
# git ls-files --others --exclude-from=.git/info/exclude
# Lines that start with '#' are comments.
# For a project mostly in C, the following would be a good set of
# exclude patterns (uncomment them if you want to use them):
# *.[oa]
# *~
terraform/.tool-versions # 追加
git status
をすると無視してくれていたので完了