Haradzieniec
Haradzieniec

Reputation: 9340

Github - create a new folder in existing project

I see I can "Create a new file here" button (the plus button) on the github page in my existing project in any folder. However, how can I create a new folder in existing project.

Thanks.

Upvotes: 0

Views: 775

Answers (2)

Anshul Goyal
Anshul Goyal

Reputation: 76847

Note that git does not track empty directories, and so if you are trying to create an empty directory in your project on github, that won't be possible, because it is just not supported by git.

If on the other hand, you want to create a file within a new directory, you can simply input its file name as directory/filename and github will create a folder named directory for you.

Upvotes: 2

jamessan
jamessan

Reputation: 42647

As described on GitHub's help page for creating new files, if you type a / in the new filename, it will create a subdirectory.

Upvotes: 0

Related Questions