How to Create New Folder in Github Repository?
This article is about how to create or add new folder in github repository directly from the web browser.
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
<iframe width="720" height="415" src="https://www.youtube.com/embed/PZCV80BeQac" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>Related Topics:
Related Posts
Fix 'failed to push some refs to' Git Errors
If you have encountered the "error: failed to push refs to" error in git, then follow this solution provided in this article to easily fix the error.
[Fixed] GitHub "fatal: remote origin already exists" error
Find out to fix "fatal: remote origin already exits" github error while working with remote git repository.
Solved "No such remote origin" Git Error Fatal
Short article on how do I fix remote origin already exists git error faced when trying to push to remote origin in Github and BitBucket.
How to remove node_modules from github or bitbucket
Step by step process to remove node_modules from github or bitbucket after the folder is added to the repository with the help of gitignore file.
