M
M
Maxim Zolotoy2018-02-25 13:26:17
git
Maxim Zolotoy, 2018-02-25 13:26:17

How to remove a file from gitignore?

I have a gitignor file like this:

*
!api.php

Then I wanted one folder to stop being ignored and did it like this
*
!api.php
!js/js.js

but it did not help - how to make the folder stop being ignored?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Talalaev, 2018-02-25
@spacenear

The key -fforces to add ignored files to the index.
git add -f js/js.js

A
Andrey, 2018-02-25
@VladimirAndreev

git status says what?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question