Cannot add to github: Gist does not support direct

2019-04-21 15:10发布

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 ?

标签: git github gist
1条回答
我命由我不由天
2楼-- · 2019-04-21 15:34

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

查看更多
登录 后发表回答