Quick summary
Creating a directory in GitHub requires adding a new file with a folder path in the file name, since GitHub does not support empty folders. You complete the process by writing a commit message and clicking Commit changes to save the new directory to your repository.
Steps
- In your GitHub repository, click the Add file button.
- Select Create new file from the dropdown menu.
- In the Name your file input box, type the full file path including the directory name (e.g., new-folder/README.md).
- GitHub will automatically create a new-folder directory containing the README.md file.
- Add any required content to the file in the editor.
- Click Commit changes to open the commit dialog.
- Provide a commit message and an optional description for the change.
- Click Commit changes again to confirm and save to the repository.
- Confirm the new directory is visible in your repository and click on it to verify.
- The new directory is now successfully created and visible in your GitHub repository.
.gif)



