開発から離れると毎度忘れるので備忘録。
ワークスペース内でデバック設定するとできる.vscode/launch.jsonをgit監視下から外したい。
.gitignoreに書くとこれをコミットするしないでめんどくさいので
(他の人はデバック設定していなかったりvscodeじゃなかったりする)
他の方法の実行。
ワークスペース配下の隠しフォルダの
.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]
# *~
.vscode