[英]In Which folder in my springboot project should i initialize git?
I have created a new SpringBoot project with the Spring initializr .我用Spring initializr创建了一个新的 SpringBoot 项目。 I want to add git to the project to track it.我想将 git 添加到项目中以对其进行跟踪。 In which folder would it be appropriate to initialize git?在哪个文件夹中初始化 git 比较合适?
I want to do it in the src
folder but I fear it might not track all the files needed.我想在src
文件夹中执行此操作,但我担心它可能无法跟踪所需的所有文件。
Init git at the root level of your project.在项目的根级别初始化 git。
Your fear is justified, since many spring projects have many additional files that should be tracked in addition to your source code and resource files (documentation, pom.xml
, etc)您的担心是有道理的,因为除了源代码和资源文件(文档、 pom.xml
等)之外,许多 spring 项目还有许多应该跟踪的附加文件
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.