How to Create New Folder in Github Repository?
📋 Table Of Content
In this short tutorial, we will see how to create a new folder in the Github repository.
Github is a code hosting platform that offers the distributed version control and code management functionality of Git.
Let's see the step-by-step process for the creation of a folder or nested folders in our Github repository.
When creating a new folder in github we have to follow two rules:
- First, you need to have a project repository, and
- A folder in github cannot be empty.
Keeping that in mind, we can follow the simple steps to create a new folder in github.
Step 1 : First go to your repository where you want to add the folder.
Step 2 : Click on create a new file or goto Add file > create a file.
Step 3 : In the text field, write the name of the folder you want and then type '
/' (forward slash). This will create the folder for you.
Step 4 : After the forward slash, type the name of the file that you want inside the folder.
Note : Github do not allow to create empty folder.
Step 5 : Once done, click on the Commit New File button at the bottom.
Video Tutorial on Creating New Folder in Github
How To Force Git Pull To Overwrite Local Files ?
Resolve- Refusing To Merge Unrelated Histories Git Error