Is there a way to check in empty directory?

This question already has an answer here:

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

  • No, you can't. You cannot commit empty folders in Git.

    A common work-around is to add an empty .gitkeep file to the folder, and check that in, or to simply place a .gitignore , ignoring the types of files that will wind up in that folder. Presumably, you want to ignore them, or you'd have something to commit.

    链接地址: http://www.djcxy.com/p/7874.html

    上一篇: 使用git忽略文件夹中的文件时的差异

    下一篇: 有没有办法检查空目录?