How can I add an empty directory to a Git repository?

后端 未结 30 3228
离开以前
离开以前 2020-11-21 04:52

How can I add an empty directory (that contains no files) to a Git repository?

30条回答
  •  长情又很酷
    2020-11-21 05:07

    You could always put a README file in the directory with an explanation of why you want this, otherwise empty, directory in the repository.

提交回复
热议问题