Skip to content

Instantly share code, notes, and snippets.

@glebovdev
Created October 17, 2018 19:37
Show Gist options
  • Save glebovdev/d81526a58ec7928b000c3c99720fb61a to your computer and use it in GitHub Desktop.
Save glebovdev/d81526a58ec7928b000c3c99720fb61a to your computer and use it in GitHub Desktop.
git: remove directories from remote repository
# See folders that you don't have locally when doing commit?
# Here's solution that helped me:
# remove folder with all content
git rm -rf --cached path/to/the/folder
# making commit with message
git commit -m "Remove path/to/the/folder directory"
# pushing changes to remote repository
git push origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment