# How to Create Directory in Github

> 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.

Canonical: https://livedemo.ai/tutorials/how-to-create-directory-in-github/
Apps: GitHub
Updated: 2026-10-05
Interactive demo: https://story-api.livedemo.ai/workspaces/62255d3d3304f17b8f5e2d03/stories/692a3986ab56e05a00fe005f/preview?step=1

## Steps

1. In your Github repository, click on the 'Add file' button.
2. Select '+Create new file'.
3. In the 'Name your file...' input box, type the path to the file, including the directory name.
4. It will create a new-folder directory with a README.md file inside it.
5. Add content to the file if needed.
6. Click 'Commit changes'.
7. Provide a commit message and description.
8. Click 'Commit changes'.
9. You have successfully created a directory directly on GitHub. Click on it.
10. Following these steps will ensure that the new directory is created and visible in your GitHub repository.
