How to Create Directory in Github
- George Apostolov
How to Create Directory in Github: step-by-step guide
In your Github repository, click on the 'Add file' button.
Select '+Create new file'.
In the 'Name your file...' input box, type the path to the file, including the directory name.
It will create a
new-folderdirectory with aREADME.mdfile inside it.Add content to the file if needed.
Click 'Commit changes'.
Provide a commit message and description.
Click 'Commit changes'.
You have successfully created a directory directly on GitHub. Click on it.
Following these steps will ensure that the new directory is created and visible in your GitHub repository.
Quick answer: To create a directory in GitHub, click 'Add file', select '+Create new file', type the file path with the directory name, optionally add content, and click 'Commit changes'. Finally, provide a commit message and description, and click 'Commit changes' again to save.
About this GitHub tutorial
Establish a new folder structure directly in GitHub by typing the path into the filename field and committing changes. This guide shows how to create Directory in Github in 10 steps, starting with "In your Github repository, click on the 'Add file' button" and finishing with "Following these steps will ensure that the new directory is created and visible in your...". The interactive demo above is a click-through copy of the real GitHub interface, so you can rehearse each step before doing it in your own account.
Frequently asked questions
How many steps does it take to create Directory in Github?
10 steps. Each one is listed in order above, and the demo highlights exactly where to click.
Can I try it without changing my own account?
Yes. Clicking through the demo doesn't touch your GitHub data or settings. Once you know the flow, repeat it in your own workspace.
This tutorial is filed under GitHub. Related guides: How to Create Github Account, How to Create Pull Request in Github and How to Customize GitHub Profile. Last reviewed 05 Oct 2026.
Create your first interactive demo in minutes
No credit card required • Start building today





