Answer the question
In order to leave comments, you need to log in
Git. Why is trying to commit a file from a folder that is in gitignore?
Good day.
The file prntscr.com/fgwyj0 stubbornly climbs into the commit .
Although the whole .idea folder is added to .gitignore prntscr.com/fgwzj0 .
What is the reason for this strange behaviour?
Answer the question
In order to leave comments, you need to log in
First, it would be much easier for everyone to provide the text of the .gitignore file, rather than some screenshot on a site with a ton of banners that takes two minutes to load. It's just a text file. Secondly, in the same way it was possible to give the text output of the command git status
instead of an incomprehensible screenshot of an incomprehensible what.
You don't have the entire .idea folder added to .gitignore. And the file may have been manually added to the git index, or before the .gitignore entry was created. You can cancel this action with the commandgit reset .idea/workspace.xml
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question