git delete remote folder code example
Example 1: remove git remote
git remote remove origin
Example 2: git remove remote
$ git remote -v
> origin https://github.com/OWNER/REPOSITORY.git (fetch)
> origin https://github.com/OWNER/REPOSITORY.git (push)
> destination https://github.com/FORKER/REPOSITORY.git (fetch)
> destination https://github.com/FORKER/REPOSITORY.git (push)
$ git remote rm destination
$ git remote -v
> origin https://github.com/OWNER/REPOSITORY.git (fetch)
> origin https://github.com/OWNER/REPOSITORY.git (push)
Example 3: git delete remote name
git remote rm remote_name
Example 4: remove folders from remote git
git rm -r --cached FolderName
git commit -m "Removed folder from repository"
git push origin master
Example 5: remove folders from remote git
git rm -r --cached myFolder
Example 6: remove folders from remote git
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)