Search code examples
gitgithubdirectorygist

Cannot push to GitHub: Gist does not support directories


I get this error when trying to push a Gist with folders in it 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 Gist 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?


Solution

  • It's not possible, use a repository. Gists are only for files.