What files shall I store in Git and which ones I'd better not?

半腔热情 提交于 2021-02-11 15:47:33

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!