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 |
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
# in the folder | |
git init | |
git remote add origin [repo-url] | |
git fetch | |
git checkout origin/master -ft |
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
Just place a file with any name (for instance, ".gitkeep") in this folder. | |
That's it. |