On branch master\n
Your branch is up to date with 'origin/master'.\n
\n
Changes not staged for commit:\n
(use "git add <file>..." to update what will be committed)\n
(use "git restore <file>..." to discard changes in working directory)\n
(commit or discard the untracked or modified content in submodules)\n
\tmodified: sm18-lazy-package-main (modified content, untracked content)\n
\n
no changes added to commit (use "git add" and/or "git commit -a")\n
git status 的结果是这样,说明
git add .确实没有成功,如果你自己在 cmd 里手动没问题,但是用 quicker 就有问题,那可能是 quicker 的问题
我们可以做一些更详细的测试,请右键编辑动作执行以下操作:
保存后再调试一次,我们就能看到 git add . 的输出日志
之所以动作里没有直接捕获 git add . 的控制台输出,是因为在以前这可能导致动作卡死,经过沟通后这个问题在某个版本修复,但为了避免优化代码弄出新的问题就一直没有改,反正跑起来没问题
最后检查出来是git仓库嵌套问题,删除子git仓库就解决了。十分感谢lz!