A
A
Alexander2017-05-29 10:49:31
linux
Alexander, 2017-05-29 10:49:31

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

1 answer(s)
N
Nikita Baev, 2017-05-29
@sanok_ps

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 question

Ask a Question

731 491 924 answers to any question