Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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, and 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?

like image 684
softvar Avatar asked Sep 12 '13 20:09

softvar


People also ask

Can we create folder in repository?

To create a new folder in a repository click “create a new file.” Type your new folder's name in the area where you would write the file name, and at the end of the file name type a “/” to initilize it as a folder. After this you can create a new file in the folder.


1 Answers

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):

Enter image description here

like image 173
softvar Avatar answered Sep 26 '22 10:09

softvar