Should Eclipse-specific files in an VCS be ignored, if using Maven?

后端 未结 4 1747
轻奢々
轻奢々 2021-02-08 05:23

I know why not to commit Eclipse/IDE-specific files into a VCS like Git (which I am actually using). That is one of the reasons I am using Maven and having it generating these f

4条回答
  •  逝去的感伤
    2021-02-08 06:09

    I'm getting my information from the following article: https://help.github.com/articles/ignoring-files

    That suggests that you can create a global gitignore file (suggest under ~/.gitignore_global) containing .project, etc. As the file is outside the repo, it won't show...

    You register it as a global ignore file with the following command:

    git config --global core.excludesfile ~/.gitignore_global
    

    Alternatively, you can create a per-repo untracked gitignore entries in the .git/info/exlude file

提交回复
热议问题