GIT 禁止提交空目录
1. git bash --> cd 新建空目录。
2. 执行 find . \( -type d -empty \) -and \( -not -regex ./\.git.* \) -exec touch {}/.gitignore \; 新建一个.gitignore文件就可以提交了。
GIT 禁止提交空目录
1. git bash --> cd 新建空目录。
2. 执行 find . \( -type d -empty \) -and \( -not -regex ./\.git.* \) -exec touch {}/.gitignore \; 新建一个.gitignore文件就可以提交了。