In this article let’s discuss about How to remove from staging git. Let’s go through the following methods without any delay.
git rm --cached -r --cached tells it to remove the paths from staging and the index without removing the files themselves and -r operates on directories recursively.
If you are facing any issues with the above approach then try the alternative that is given below. It may look similar by have a try!
Method 2 :
git rm --cached FILE.NAME
Hope the above solution works.
Realted Posts : Purge apache 2