我运行了命令“git reset”,但我未暂存的更改被放入文件夹中。运行 git status 后,我得到如下信息:
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: file1
modified: file2
modified: file3
modified: file4
modified: file5
Untracked files:
(use "git add <file>..." to include in what will be committed)
folder1
folder2
folder3
folder4
每个文件夹都包含多个我修改过的文件,但由于某种原因被分组到这些文件夹中。
我需要将这些更改分成多个拉取请求,因此“git commit -a”不会这样做。
我看到的最好的解决方案是“git add -all”,复制“git status”,然后再次“git reset”,但这似乎需要付出很多努力。
有更好的解决方案吗?