You are currently viewing [SOLVED] Git: .gitignore Intellij not ignoring .idea  path – check why you have issue with it – easy solution in 1 min!
Could You Please Share This Post? I Appreciate It And Thank YOU! :) Have A Nice Day!
4.9
(2849)

What is IDEA IntelliJ?

IntelliJ IDEA is a Java-based Integrated Development Environment (IDE) that aims to boost developer productivity. It takes care of the mundane and repetitive duties for you by providing intelligent code completion, static code analysis, and refactorings, allowing you to concentrate on the more pleasurable aspects of software development.

What is Git?

Git is by far the most popular modern version control system in use today. Git is a mature, actively maintained open source project created by Linus Torvalds, the well-known developer of the Linux operating system kernel, in 2005. Git is used for version control in an astonishing number of software projects, both commercial and open source. Git-experienced developers are plentiful in the pool of accessible software development talent, and it runs smoothly on a variety of operating systems and IDEs (Integrated Development Environments).

Git: .gitignore Intellij not ignoring git ignore .idea path - check why you have issue with it - easy solution in 1 min!

Cause In Intellij IDEA gitignore

The nature of .gitignore is that only newly added files are ignored.[ gitignore Intellij git ignore .idea gitignore not working ]In the situation that a directory has been added to your repository, e.g. the mentioned .idea, then changes to these directories or file files are simply tracked by Git. To resolve the problem, you must remove this path from the git cache. The same problem applies to every other case, i.e. any directory or file.

.gitignore: Solution

As I mentioned above to solve the issue we must remove this path from cache. Please use the command below to do this.

git rm --cached -r .idea

FAQ

Where is Gitignore in Intellij?

In root folder of your project.

How do I ignore files in Intellij?

Open .gitignore file and add the directories or files which must be ignored:
Example entries:

dist/*
target/

*.class
*.log

How do I open a .gitignore file in Intellij?

How do I open a .gitignore file in Intellij?

Just click two times on file:


Could You Please Share This Post? 
I appreciate It And Thank YOU! :)
Have A Nice Day!

BigData-ETL: image 7YOU MIGHT ALSO LIKE

How useful was this post?

Click on a star to rate it!

Average rating 4.9 / 5. Vote count: 2849

No votes so far! Be the first to rate this post.

As you found this post useful...

Follow us on social media!

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?