How do I create a folder in a GitHub repository?

后端 未结 12 1166
庸人自扰
庸人自扰 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:09

    Actually GitHub does not create an empty folder.

    For example, to create a folder in C:\Users\Username\Documents\GitHub\Repository:

    • Create a folder named docs

    • Create a file name index.html under docs

    • Open the GitHub for desktop application

      It will automatically sync, and it will be there.

提交回复
热议问题