How do I create a folder in a GitHub repository?

后端 未结 12 1173
庸人自扰
庸人自扰 2020-12-02 03:40

I want to create a folder in a GitHub repository and want to add files in that folder. How do I achieve this?

12条回答
  •  臣服心动
    2020-12-02 04:10

    I don't know whenever I use "/" in repository name it is replaced by "-" maybe github changed method of creating folders.

    So I'm going to tell you what I did to create a empty folder and to add files.

    1. Click on New
    2. enter your folder name and nothing else
    3. Click on "Add a README file"
    4. Click "Create Repository"
    5. Now clone the folder you created.
    6. Add files or folders in the local repo
    7. Commit changes.
    8. And there you go.

提交回复
热议问题