How do I configure git to ignore some files locally?

前端 未结 11 928
深忆病人
深忆病人 2020-11-22 01:03

Can I ignore files locally without polluting the global git config for everyone else? I have untracked files that are spam in my git status but I don\'t want to commit git c

11条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-22 01:43

    If your repo doesn't already have a .gitignore file, then a simple solution is to create a .gitignore file, and in it add .gitignore to the list of files to be ignored.

提交回复
热议问题