Trying to delete a large folder from git repository but for too long

I have a git repository that has a folder with about 70,000 files in it. It was a pain, so instead of using 70,000 files, I compressed them into a single tar.gz.

Now I am trying to remove the directory from the git repository, but it seems to make LOT longer than I thought. I am wondering if git just hangs every time I try to delete a folder.

I see git working when I do htop:

process using running

This is the command I use to delete a folder:

git rm -r <folder_name>

Is there a better way to do this?

** Update: in the end he finished, took about 20 minutes.

+4
source share
1 answer

( ) :

 git rm -r --cached <folder_name> 
 rm -Rf <folder_name>
 git commit -m "delete folder"
0

Source: https://habr.com/ru/post/1685318/


All Articles