How do I configure git to ignore some files locally?

前端 未结 11 1193
深忆病人
深忆病人 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:41

    this is a kind of brief solution,that add a row to local exclude file.

     echo YOURFILE_OR_DIRECTOY >> .git/info/exclude 
    

提交回复
热议问题