所以,我对Git有问题,它忽略了同名的文件和目录。。。
如何繁殖:
touch test.txt
mkdir test
git add .
git status
它将显示如下内容:
On branch master Initial commit Changes to be committed: (use "git rm --cached <file>..." to unstage) new file: test.txt
问题是,我的目录名是 test ?
test
使用 git add --all 因为 git add . 仅从当前目录添加文件
git add --all