Closed1
gitで追跡したくないしその設定を他人と共有したくない場合は.git/info/excludeにおく
要件
- gitで追跡したくない
- .gitignoreにも書きたくない
- .gitignore_globalにも書きたくない(他のrepoでは含める場合もあるので)
-> .git/info/excludeにかける。
運用例: repo専用のvscodeの設定をlocalでのみ管理する
repoをforkしたが、upstreamがformat整形してない。
不要な変更を混ぜたくないのでこのrepoだけformatを無効にしたい。
他のrepoではgitで管理するのでglobal設定も汚したくない。
.vscode/settings.json
{
"[python]": {
"editor.formatOnSave": false
}
}
.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/settings.json
このスクラップは3日前にクローズされました