How to delete a file from gitignore?

I have a file gitignore like this:
*
!api.php

Then I wanted one folder stopped ignored and did this
*
!api.php
!js/js.js

but it didn't help - as that would make the folder stopped ignoratis?
June 7th 19 at 15:36
2 answers
June 7th 19 at 15:38
Solution
The key -f causes to add to the index ignored files.
git add -f js/js.js
Thank you, everything works) - Charity_Auer commented on June 7th 19 at 15:41
June 7th 19 at 15:40
git status says?
nothing to commit, working tree is clean - Charity_Auer commented on June 7th 19 at 15:43

Find more questions by tags Git