文件被占用,Git提交取消

使用问题 · 258 次浏览
samoyedy 创建于 2023-11-27 17:06

kopia备份成功,但git备份不成功,烦请解惑,谢谢!
报错信息如下:

检查并无打开的文件,重启后依然如此。
调试文件:
https://temp.getquicker.net/513866/5fd47cc1c0154528b8bdfd14db552e84.html


samoyedy 2023-12-05 19:31 :

最后检查出来是git仓库嵌套问题,删除子git仓库就解决了。十分感谢lz!

回复内容
风未知 2023-12-05 19:31
#1

此问题是仓库里套了个子仓库无法提交导致的,删掉子仓库(.git隐藏文件夹)后解决

风未知 2023-12-04 18:02
#2

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 . 的控制台输出,是因为在以前这可能导致动作卡死,经过沟通后这个问题在某个版本修复,但为了避免优化代码弄出新的问题就一直没有改,反正跑起来没问题

samoyedy 回复 风未知 2023-12-04 18:40 :

https://temp.getquicker.net/513866/62e109d035db467694469fe78a3d9d18.html 
我又测试了手动提交,没有报错:

风未知 回复 samoyedy 2023-12-04 20:03 :

看起来没有任何输出,这下无法判断问题,已经算是疑难杂症了

你可以留下 qq 号,我加你远程看看

samoyedy 回复 风未知 2023-12-05 16:24 :

好的谢谢,(已加)

风未知 最后更新于 2023-12-05 16:40
风未知 2023-11-28 11:16
#3

请按照置顶贴 提问前必看 中的方法调试

或者你直接打开 git 仓库根目录,在地址栏窗口输入 cmd 回车,然后执行命令 git add .,截图、复制发出来就行

samoyedy 回复 风未知 2023-11-28 13:52 :

手动执行好像没有问题:

samoyedy 回复 风未知 2023-12-04 15:08 :

不知道你说的调试是不是指取消多线程生成详细的记录?https://temp.getquicker.net/513866/e207a77f72eb4ee8967eb208a03cc45c.html

回复主贴