无法添加到github:Gist不支持目录 [英] Cannot add to github: Gist does not support directories

查看:156
本文介绍了无法添加到github:Gist不支持目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在尝试推送到github时出现错误:

  remote:Gist不支持目录。 
remote:这些是导致问题的目录:
remote:dirname1,dirname2



看看其他问题,似乎github不接受空文件夹,但这些文件夹都不是空的。
我可以成功推送仓库根文件夹内的其他文件,也可以使用git将应用程序成功部署到heroku。



我如何添加一个目录到github的要点?我在这里做错了什么?

解决方案

这是不可能的,请使用存储库。 Gist仅适用于文件,请查看github开发人员的评论:

https://twitter.com/pavelrepin/status/297473901884223488


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 ?

解决方案

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

这篇关于无法添加到github:Gist不支持目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆