Creating folders inside a GitHub repository without using Git
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.
For example, 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):
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.
You can also just enter the website and:
- Choose a repository you have write access to (example URL)
- Click "Upload files"
- Drag and drop a folder with files into the "Drag files here to add them to your repository" area.
The same limitation applies here: the folder must contain at least one file inside it.