问题
I created a new Dynamic Web Project in Eclipse and did nothing more.
Now I do the initial commit.
The following files can be committed:
I feel that none of these files are needed in Git - am I right?
And how to prevent these files from appearing again in this menu window.
回答1:
- Any file that you create should be in.
- Any file that is generated (by: tools, compiler etc) should be out.
Pay attention to file indirectly generated by your action (IDE project file). Some of these should be in, to share working environment across computers.
Create a git-repo then use another PC (with same tools) and pull, you should be able to work the same way.
来源:https://stackoverflow.com/questions/55058905/what-files-shall-i-store-in-git-and-which-ones-id-better-not