Git remove folder from repository

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

Method 1:

rm -rf .git*

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 commit -m "Removed Folder"
git push origin master

Hope the above solution works.

Realted Posts : Awk how to print without adding spaces between fields