简体   繁体   English

从Eclipse在SVN存储库上提交项目

[英]Commiting project on svn repository from eclipse

I know how to commit project to the repository ie by doing right click on Project>Team>commit and then select the files to commit. 我知道如何将项目提交到存储库,即通过右键单击Project> Team> commit,然后选择要提交的文件。 My confusion is at this point while we select which files do we need to commit: 我的困惑是,此时我们选择需要提交的文件:

1) Do we need to select only java files and xml files? 1)我们是否只需要选择Java文件和xml文件?

2) Will it lead to any conflicts if we commit bin or other folders or files than java files and xml files? 2)如果我们提交bin或除Java文件和xml文件之外的其他文件夹或文件,是否会导致任何冲突?

It might sound so silly but it would be really very helpful if anyone throws light on these points! 听起来可能很愚蠢,但是如果有人对这些观点有所帮助,那将非常有帮助! or give references to any good tutorial on commiting files to svn. 或提供有关将文件提交到svn的任何良好教程的参考。

Thanks 谢谢

1) It is strongly NOT recommend to commit a bin folder or classes files. 1)强烈建议不要提交bin文件夹或类文件。 It is recommended to commit only source files (Java) and resources (xml files, images etc.). 建议仅提交源文件(Java)和资源(xml文件,图像等)。

2) If you commit the bin folder you will see a difference each time after a compilation. 2)如果提交bin文件夹,则每次编译后都会看到不同。

Couple of additional clarifications why NOT to commit the result of the compilation (a bin folder or classes files): 几个附加的说明为什么不提交编译结果(bin文件夹或类文件):

1) You can compile your product form the same sources to the different platforms 1)您可以将相同形式的产品编译到不同的平台

2) It just take space in a source control repository 2)仅占用源代码控制存储库中的空间

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM