Git remove cached

In this article let’s discuss about Git remove cached. Let’s go through the following methods without any delay.

Method 1:

$ git rm -r --cached .

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 -r --cached . 
> git add . 
> git commit -m 'git cache cleared'
> git push

Hope the above solution works.

Realted Posts : Restart lxssmanager service cli