How to Add Folder in GitHub?

Open your GitHub repository

Click Add file

Select Create new file

Type the folder name followed by a slash

Type the file name after the slash

Add file content

Scroll down to Commit changes

Enter a commit message

Click Commit changes

To add an empty folder, create a placeholder file such as .gitkeep inside it

Commit the placeholder file to create the folder in GitHub

Suggested for You

Trending Today