Remove directory from git and local
1 2 3 4 5 6 7 8 9 |
## Delete the directory in your local repository git rm -r one-of-the-directories ## Commit the change git commit . -m "Remove duplicated directory" ## Delete the directory in your remote repository git push origin |
Remove directory from git but NOT local
If you want to remove this directory from git but not delete it entirely from the filesystem (local) use the below command:
1 2 |
## Remove the directory from git git rm -r --cached one-of-the-directories |