Search code examples
gitgithubdirectory-structuregithub-services

Creating folders inside a GitHub repository without using Git


I want to add a new folder to my newly created GitHub repository without installing the Git setup for (Mac, Linux, or Windows). 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 repository on github.com/[USER]/[REPO]. Can we create a folder as well?


Solution

  • After extensive research, I have determined that it is indeed possible to create a new folder from the web interface. However, it requires that at least one file be included within the folder at the time of its creation.

    When creating new files via the web interface, you can specify the folder path within the file name to place the file in the desired directory.

    For instance, to create the file filename.md within a series of sub-folders, you can follow this approach (as illustrated on the GitHub blog):

    Enter image description here