简体   繁体   English

我应该在 springboot 项目的哪个文件夹中初始化 git?

[英]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.

相关问题 我的 Spring 启动项目应该使用哪些文件 git - What files should I git for my Spring boot project 我应该删除我在netbeans中制作的项目的dist文件夹吗? - Should i delete dist folder of my project made in netbeans? 我的 Maven 项目中的 JAXB RI 应该使用哪些工件? - Which artifacts should I use for JAXB RI in my Maven project? 我的第一个休眠项目应包含哪些jar文件? - Which jar files should i include in my first hibernate project? 我应该为我的项目选择哪种应用服务器? - Which application server should i choose for my project? 我应该用种子初始化我的BCryptPasswordEncoder的SecureRandom吗? - Should I initialize the SecureRandom for my BCryptPasswordEncoder with a seed? springboot Logback 与我最近添加到项目中的依赖项的实现冲突 - springboot Logback conflicting with an implementation on the dependency I recently added to my project 如何将 Spock 添加到我的 Springboot 项目中? - How do I add Spock to my Springboot project? 如何从我的Java项目生成一个exe文件? 我应该使用哪个工具? - How to generate an exe file from my java project ? Which tool should I use? 我应该在哪里初始化我的开关小部件 Android - Where should I initialize my switch widget Android
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM