Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot push to GitHub: Gist does not support directories

Tags:

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?

like image 576
Eels Avatar asked Dec 28 '14 14:12

Eels


People also ask

Can you push to a Gist Github?

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.

Does Github Gist support markdown?

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.


2 Answers

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

like image 96
jordeu Avatar answered Oct 21 '22 01:10

jordeu


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.

like image 39
VolkanCP Avatar answered Oct 21 '22 01:10

VolkanCP