Search code examples
gitgitignore

How do i ignore directories in .gitignore file?


Hey everyone! I am writing a new project right now and i have some problems with ignoring build directories. Project main directory

I need to ignore out/ directory but it doesn't work. (I already deleted out/ directory from my github repository)

This is .gitignore line:

.gitignore file

This is github repository after i deleted out/ directory from it

Github repository

Looks like it should work, but after all this out/ directory still appears in commit list:

enter image description here

How should i do this?


Solution

  • Try also doing git rm -r --cached out