Git: Ignoring Version-Controlled Files

前端 未结 6 2097
遇见更好的自我
遇见更好的自我 2020-11-28 23:13

The .gitignore file is very useful in ignoring some of the files that we don\'t want to control. Unfortunately, it cannot be used when the file is already under version cont

6条回答
  •  再見小時候
    2020-11-28 23:51

    If you want to exclude files that are specific to your process (such as Vim temporary files), edit the (local) file .git/info/exclude and add your exclusion patterns there. This file is designed for developer-specific exclusions rather than .gitignore, which is designed for project-wide exclusions.

    The short summary is, everybody should agree on what is added to .gitignore. For files where you don't agree, use .git/info/exclude.

提交回复
热议问题