How to Create New Folder in Github Repository?

featured Image

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:

How to add empty folder/directory in Git

Resolve- Refusing To Merge Unrelated Histories Git Error

Open Github Repository Directly In Vscode In Browser Online

How to change git username and password on PC

Open Github repository in VS Code in Online

How to save username, email and password globally in Github?

How to check Git email address and username in terminal?

Related Posts

git commands with example

Top 40 Git commands with Examples

GitHub has become an essential tool for developers to manage, store, and collaborate with other developers on software projects. With its simple powerful git-based version control system, GitHub allows users…

Read more
Check GitHub Account in the Terminal

Check GitHub Account in the Terminal

GitHub is an integral tool for developers to store, manage, and collaborate on software projects with other developers. And as we work more and more in the command line it…

Read more
featured Image

How to make list of objects in Netlify CMS using list and object Widget

Here in this Netlify CMS tutorial we will how easily we can make a list of objects using list and object widgets. This will allow us to add multiple objects…

Read more

Leave a Reply

Your email address will not be published. Required fields are marked *