是这么个情况:
$ git commit -m "message"
On branch master
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
(commit or discard the untracked or modified content in submodules)
modified: file01 (modified content)
modified: file02 (modified content, untracked content)
modified: file03 (untracked content)
modified: file04 (modified content)
no changes added to commit (use "git add" and/or "git commit -a")
解决办法:
cd 每一个file,然后再 git add . 再 gitcommit

完成
本文指导如何在Git中处理未跟踪的文件(file01, file02, file03, file04)和已修改的内容,教你逐个文件添加并最终提交更改。
2372

被折叠的 条评论
为什么被折叠?



