How to Create New Folder in Github Repository?


How to Create New Folder in Github Repository?

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:

  1. First, you need to have a project repository, and
  2. 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

Related Topics:

Resolve- Refusing To Merge Unrelated Histories Git Error

Open Github Repository Directly In Vscode In Browser Online