Is there a way to check in empty directory?
This question already has an answer here:
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.
上一篇: 使用git忽略文件夹中的文件时的差异
下一篇: 有没有办法检查空目录?