Answer the question
In order to leave comments, you need to log in
How to remove only .php files in the root directory of the repository from the git index?
Late added to root directory php .gitignore files. Now I execute the command git rm --cached /*.php
But it says:
What am I doing wrong? fatal: /*.php: '/*.php' is outside repository
Answer the question
In order to leave comments, you need to log in
To delete everything in the current directory, you can simply write:git rm --cached *.php
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question