如何在github存储库中创建文件夹? [英] How to create folder in github repository?
本文介绍了如何在github存储库中创建文件夹?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在github存储库中创建文件夹并在该文件夹中添加文件。如何做到这一点?
/GitFaq#Can_I_add_empty_directories.3Frel =noreferrer> git不存储空文件夹。只需确保doc / foo.txt文件夹中有文件并运行 git add doc
或 git add doc / foo.txt
,并且该文件夹将在您提交后添加到您的本地回购站(并且一旦您推送它就会出现在github上) I want to create folder in github repository and add files in that folder. How to achieve this?
解决方案
git doesn't store empty folders. Just make sure there's a file in the folder like doc/foo.txt and run git add doc
or git add doc/foo.txt
and the folder will be added to your local repo once you've committed (and appear on github once you've pushed it)
这篇关于如何在github存储库中创建文件夹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文