I have a question about .gitignore
.
I use Intellij IDEA to automatically generate what folders to ignore. In .gitignore
it wrote ../.idea/
. In the git status view, I still can see it:
I have a question about .gitignore
.
I use Intellij IDEA to automatically generate what folders to ignore. In .gitignore
it wrote ../.idea/
. In the git status view, I still can see it:
If your git status
shows ../.idea
, that means your .gitignore
is one folder below:
/path/to/repo
.idea
asubfolder
.gitignore
Make sure your .gitignore
is at the same level as .idea, and use:
.idea/
Here it is what you generally need IDEA, Eclipse, NetBeans, target folder... in .gitignore
target/
!.mvn/wrapper/maven-wrapper.jar
### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr
### NetBeans ###
nbproject/private/
build/
nbbuild/
dist/
nbdist/
.nb-gradle/
Be sure after this you run git rm -r --cached .
maven-wrapper.jar
excluded here? Why isn't the pom self-contained?
Aug 13, 2018 at 19:17