在不使用Git的情况下在github.com repo中创建文件夹

本文翻译自:Creating folders inside github.com repo without using Git

I want to add a new folder to my newly created GitHub repository without installing the Git setup for (Mac/Linux/Win). 我想在我新创建的GitHub存储库中添加一个新文件夹而不安装Git设置(Mac / Linux / Win)。 Is it possible to do so? 有可能这样做吗?

I can't have Git all the time with me when I work on different systems/machines. 我不能Git所有的时间陪我,当我在不同的系统/设备的工作。 I know how to add files directly in a repo on github.com/[USER]/[REPO] . 我知道如何直接在github.com/[USER]/[REPO]的回购中添加文件。 Can we create a folder as well? 我们也可以创建一个文件夹吗?


#1楼

参考:https://stackoom.com/question/1Glry/在不使用Git的情况下在github-com-repo中创建文件夹


#2楼

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. 使用通过Web界面创建新文件的常规方法时,可以在文件夹中键入文件夹以在该新目录中创建文件。

Eg 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): 例如,如果我想在一系列子文件夹中创建文件filename.md,我可以这样做(取自GitHub博客):

在此输入图像描述


#3楼

When creating a file, use slashes to specify the directory. 创建文件时,使用斜杠指定目录。 For Example: 例如:

Name the file: 命名文件:

repositoryname/newfoldername/filename

GitHub will automatically create a folder with the name newfoldername GitHub将自动创建一个名为newfoldername的文件夹


#4楼

You can also just enter the website and: 您也可以进入网站并:

  • click upload files 单击上载文件
  • then drag and drop a folder with files into the "drag files here" area. 然后带有文件的文件夹拖放到“此处拖动文件”区域。

The same limitation applies here: the folder must contain at least one file inside it. 同样的限制适用于此:文件夹中必须至少包含一个文件。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值