Created
September 1, 2021 17:55
-
-
Save Korveld/75654e12cd2a8918342e68d7dd20086b to your computer and use it in GitHub Desktop.
Remove directory from git
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Remove directory from git and local | |
| git rm -r one-of-the-directories // This deletes from filesystem | |
| git commit . -m "Remove duplicated directory" | |
| git push origin <your-git-branch> (typically 'master', but not always) | |
| Remove directory from git but NOT local | |
| git rm -r --cached myFolder |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment