Cannot add to github: Gist does not support directories

耗尽温柔 提交于 2019-12-05 12:45:41

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!