Skip to content

Instantly share code, notes, and snippets.

@Korveld
Created September 1, 2021 17:55
Show Gist options
  • Select an option

  • Save Korveld/75654e12cd2a8918342e68d7dd20086b to your computer and use it in GitHub Desktop.

Select an option

Save Korveld/75654e12cd2a8918342e68d7dd20086b to your computer and use it in GitHub Desktop.
Remove directory from git
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