[英]Do I add IDE's files to the git
If I build Netbeans or or any other IDE project with git do I add IDE specific files like: 如果我使用git构建Netbeans或任何其他IDE项目,我会添加IDE特定的文件,例如:
manifest.mf nbproject/ lib/ build.xml
Certainly we do not keep binaries to version system. 当然,我们不会将二进制文件保留在版本系统中。 What files is appropriate to add to git repo?
哪些文件适合添加到git repo? I understand that when building Maven project then only pom.xml is needed, but in case I just click new->project.
我知道在构建Maven项目时,只需要pom.xml,但是如果我只是单击new-> project。
You should check in, at a minimum, your nbproject/configurations.xml
and nbproject/project.xml
(assuming you have those). 您至少应签入您的
nbproject/configurations.xml
和nbproject/project.xml
(假设您拥有这些文件)。 You should also consider checking in the other files in nbproject/
such as any Makefiles, but do not check in the private/
subdirectory (again, if you have it). 您还应该考虑检入
nbproject/
中的其他文件,例如任何Makefile,但不要检入private/
子目录(同样,如果有的话)。
The reason I check in my Makefiles is that I want to be able to build my project in Jenkins, outside of NetBeans. 我检入Makefile的原因是,我希望能够在NetBeans之外的Jenkins中构建项目。 Jenkins clones the repo and runs
make
without any IDE support. Jenkins克隆存储库并在没有任何IDE支持的情况下运行
make
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.