LinMinquan's Blog

Experience technology to change life

git 添加一个空文件夹(目录)

如果新建了个文件夹,但会发现它无法被添加到git里,因为can not hack an mepty directory.  解决办法是在该文件夹里加个.gitignore文件,里面写上

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


Share