问题
I get the error when trying to push to github:
remote: Gist does not support directories.
remote: These are the directories that are causing problems:
remote: dirname1, dirname2
Looking at other questions, it seems that github doesn't accept empty folders but none of these folders are empty. I can successfully push other files that are inside the root folder of the repository, and can also successfully deploy the app to heroku using git.
How do I add a directory to github's gist ? What am I doing wrong here ?
回答1:
It's not possible, use a repository. Gists are only for files, check this comment of a github developer:
https://twitter.com/pavelrepin/status/297473901884223488
来源:https://stackoverflow.com/questions/27677382/cannot-add-to-github-gist-does-not-support-directories