Application.properties 文件未被 git 跟踪
Application.properties file not being tracked by git
我有一个 Java Spring 项目,其资源文件夹中有 application.properties 文件。当我尝试将它提交到 git 时,它没有显示在已更改文件列表中。我正在使用 SourceTree。这是我的。git忽略。我正在使用 intellij 社区版。
/target/
!.mvn/wrapper/maven-wrapper.jar
### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr
### NetBeans ###
/nbproject/private/
/build/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
我希望 application.properties 被跟踪。
我在全局 .gitignore 中忽略了 .properties
我有一个 Java Spring 项目,其资源文件夹中有 application.properties 文件。当我尝试将它提交到 git 时,它没有显示在已更改文件列表中。我正在使用 SourceTree。这是我的。git忽略。我正在使用 intellij 社区版。
/target/
!.mvn/wrapper/maven-wrapper.jar
### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr
### NetBeans ###
/nbproject/private/
/build/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
我希望 application.properties 被跟踪。
我在全局 .gitignore 中忽略了 .properties