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?
If you want to make local changes to a gist and push them up to the web, you can clone a gist and make commits the same as you would with any Git repository.
Most of you probably know and use Github Gists for sharing Code snippets. But did you know that Gists also support Markdown? Using Markdown makes it easy to create much richer code shareable code and even allows for an easy way to create self-contained Web content.
It's not possible, use a repository. Gists are only for files.
You cannot create folders, but you can have each "gist" begin with a prefix. So you can assign each gist to a "domain" or a "folder". If you want to search in a certain "folder" or "domain", you only have to enter the prefix.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With