在不使用Git的情况下在GitHub存储库中创建文件夹 [英] Creating folders inside a GitHub repository without using Git

查看:81
本文介绍了在不使用Git的情况下在GitHub存储库中创建文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的新创建的GitHub存储库中添加一个新文件夹,而不安装适用于Mac,Linux和Windows的Git设置.有可能这样做吗?

I want to add a new folder to my newly created GitHub repository without installing the Git setup for (Mac, Linux, and Windows). Is it possible to do so?

当我在不同的系统/机器上工作时,我无法一直带Git.我知道如何直接在github.com/[USER]/[REPO]的存储库中添加文件.我们也可以创建一个文件夹吗?

I can't have Git all the time with me when I work on different systems/machines. I know how to add files directly in a repository on github.com/[USER]/[REPO]. Can we create a folder as well?

推荐答案

经过大量搜索后,我发现可以从Web界面创建一个新文件夹,但这将要求您在其中至少包含一个文件创建文件夹时.

After searching a lot I find out that it is possible to create a new folder from the web interface, but it would require you to have at least one file within the folder when creating it.

使用通过Web界面创建新文件的常规方法时,可以在文件名中键入文件夹,以在该新目录中创建文件.

When using the normal way of creating new files through the web interface, you can type in the folder into the file name to create the file within that new directory.

例如,如果我想在一系列子文件夹中创建文件filename.md,则可以这样做(取自GitHub博客):

For example, if I would like to create the file filename.md in a series of sub-folders, I can do this (taken from the GitHub blog):

这篇关于在不使用Git的情况下在GitHub存储库中创建文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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