I want to add a new folder to my newly created GitHub repository without installing the windows setup. Is it possible to do so? I have gone through help which is saying to execute some commands to create a folder but I don't know where to write those commands.

I can't install a Windows setup because my office PC is restricted.

I know how to add files using the web app interface but not folders.

  • How did you create your repository then? What software do you use to manage git? Normally, creating a new folder within your repository is as easy as creating a new folder in the Windows Explorer, then doing a commit.
    – chrki
    Dec 8 '12 at 11:41
  • 1
    @user1781026 nah!! not that.. I am asking How to add a new folder on the web browser (github account) not on computer.
    – Mr_Green
    Dec 8 '12 at 11:59
  • 2
    Talk to your office admin about changing your PC setup, you should not be managing your repos in the front end. The new add file feature is nifty but it's not meant currently to be the way to manage your files.
    – phwd
    Dec 8 '12 at 14:51
  • 1
    @phwd so It is not possible to create a folder on web interface.. right?
    – Mr_Green
    Dec 11 '12 at 6:05
  • 1
    @phwd There could be some trick to achieve it.. I dont care if it is very long process.. please help.
    – Mr_Green
    Dec 15 '12 at 12:04

It is possible to create a new folder from the web interface, but it would require you to have at least one file within the folder when creating it.

When using the normal way of creating new files through the web interface, you can type in the folder into the file name to create the file within that new directory.

E.g. If I would like to create the file filename.md in a series of subfolders, I can do this (taken from the GitHub Blog): With credits to GitHub


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.