skip to Main Content
Hot To Clear Git Cache

Hot to clear git cache

Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency. How and when you need to clear Git cache. When you want to add any file/folder to git ignore at that time you need to clear cache. When you think your git is messed up and acting funky you need to clear cache. Just follow below command for a clear cache.

Make sure before clear cache commits your code and push it to the server.

Clear Git Cache

git rm -r --cached .
git add .
git commit -am 'git cache cleared'
git push origin master

If you face any kind of issue after following above step please write below the comment.


I am a web designer and developer part-time blogger. Write something on some free time. Find my every day thought here :)

Leave a Reply

Your email address will not be published. Required fields are marked *

Back To Top