GIT COMMIT 空目录的方法

GIT 禁止提交空目录

1. git bash --> cd 新建空目录。

2. 执行    find . \( -type d -empty \) -and \( -not -regex ./\.git.* \) -exec touch {}/.gitignore \;        新建一个.gitignore文件就可以提交了。

猜你喜欢

转载自blog.csdn.net/u013985241/article/details/83104703