0

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.

Haradzieniec
  • 9,086
  • 31
  • 117
  • 212

2 Answers2

2

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.

Community
  • 1
  • 1
Anshul Goyal
  • 73,278
  • 37
  • 149
  • 186
0

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

jamessan
  • 41,569
  • 8
  • 85
  • 85