我应该在Git中存储哪些文件,最好不要存储哪些文件? [英] What files shall I store in Git and which ones I'd better not?

查看:47
本文介绍了我应该在Git中存储哪些文件,最好不要存储哪些文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Eclipse中创建了一个新的动态Web项目,仅此而已.

I created a new Dynamic Web Project in Eclipse and did nothing more.

现在我进行初次提交.

可以提交以下文件:

我觉得Git中不需要这些文件-是吗?

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.

推荐答案

  • 您创建的任何文件都应位于其中.
  • 由工具,编译器等生成的任何文件都应该退出.
  • 请注意您的操作间接生成的文件(IDE项目文件).其中一些应该存在,以便在计算机之间共享工作环境.

    Pay attention to file indirectly generated by your action (IDE project file). Some of these should be in, to share working environment across computers.

    创建一个git-repo然后使用另一台PC(具有相同的工具)并拉,您应该能够以相同的方式工作.

    Create a git-repo then use another PC (with same tools) and pull, you should be able to work the same way.

    这篇关于我应该在Git中存储哪些文件,最好不要存储哪些文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆