问题描述
我想为新创建的GitHub存储库添加一个新文件夹,而无需安装(Mac / Linux / Win)的 Git
设置。是否可以这样做?
当我工作时,我无法一直与我在一起 Git
不同的系统/机器。我知道如何在 github.com/ [USER] / [REPO]
的回购库中直接添加文件。我们是否可以创建一个文件夹?
搜索了很多后,我发现可以创建一个新文件夹Web界面,但它会要求您在创建文件夹时至少有一个文件。
使用通过Web界面创建新文件的常规方式,您可以在文件名中输入文件夹以在该新目录中创建文件。
例如如果我想在一系列子文件夹中创建文件filename.md,我可以这样做(从GitHub博客中获取):
I want to add a new folder to my newly created GitHub repository without installing the Git
setup for (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. I know how to add files directly in a repo on github.com/[USER]/[REPO]
. Can we create a folder as well?
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.
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.
E.g. 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.com仓库中创建文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!