Created
October 17, 2018 19:37
-
-
Save glebovdev/d81526a58ec7928b000c3c99720fb61a to your computer and use it in GitHub Desktop.
git: remove directories from remote repository
This file contains 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
# 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