我想在GitHub存储库中创建一个文件夹,并想在该文件夹中添加文件。我该如何做到这一点?
当前回答
简单的步骤:
步骤1:单击创建新文件
第二步:输入你想要的文件夹名称,然后按/
步骤3:输入一个示例文件名。您必须输入一些文本。
步骤4:单击Commit new file创建文件夹
步骤5:创建文件夹!
其他回答
只需将文件夹从Windows资源管理器拖到浏览器的github上传文件显示-现在文件夹将自动添加…
实际上GitHub并不创建空文件夹。
例如,在C:\Users\Username\Documents\GitHub\Repository目录下创建一个文件夹:
创建一个名为docs的文件夹 在docs下创建一个名为index.html的文件 打开桌面应用程序GitHub 它会自动同步,它会在那里。
我不知道当我在存储库名称中使用“/”时,它会被“-”取代,也许github改变了创建文件夹的方法。
我将告诉你们我是如何创建一个空文件夹并添加文件的。
点击新建 输入您的文件夹名称,不要输入其他任何内容 点击“添加README文件” 点击“创建存储库” 现在克隆您创建的文件夹。 在本地回购中添加文件或文件夹 提交更改。 好了。
对于使用浏览器的用户,可以执行以下操作:
Once in the master repository, click on Create new file. In the name of file box at the top, enter the name of your folder Use the / key after the name of the folder. Using this forward slash creates the folder You can see a new box appear next to the folder name wherein you can type the name of your file. In the Commit new file box at the bottom of the page, you can type the description for your file. Select the radio button Commit directly to the master branch. Click on the Commit new file button You will see the new directory will be created.
创建一个新文件,然后在文件名上使用斜杠。例如
Java / Helloworld.txt
推荐文章
- 在Markdown Jekyll中使用图像说明
- 如何修改GitHub拉请求?
- 如何在Github和本地删除最后n次提交?
- 如何将文件附加到GitHub问题?
- 如何添加谷歌分析跟踪ID到GitHub页面
- 差异语法突出显示在Github Markdown
- /dist目录在开源项目中的意义是什么?
- 我如何从现有回购的分支创建一个新的GitHub回购?
- 在git中压缩提交是什么意思?
- 如何在GitHub上找到存储库项目的创建日期?
- 如何设置一个git项目使用外部回购子模块?
- 强制LF eol在git的回购和工作副本
- 防止在GitHub上推送到master ?
- 我如何在github上引用特定问题的评论?
- 我如何才能看到我在Github上看到的所有问题?