我将一些文件名大写(例如 footer.js 到 Footer.js)。但问题是 git 仍然保留旧文件名的记录,但即使在“git status”中也不会在任何地方显示这些文件。相反,它在切换分支时显示错误。此外,VS Code 的 git 更改中没有显示任何内容。 这是我的终端内容:
C:\Users\DELL\frontend-development\New Repo\aidhumanity-frontend>git checkout main
error: The following untracked working tree files would be overwritten by checkout:
src/components/footer.js
src/components/header.js
src/components/modal/login.js
src/pages/Dashboard/dashboard.js
src/pages/home.js
Please move or remove them before you switch branches.
Aborting
C:\Users\DELL\frontend-development\New Repo\aidhumanity-frontend>git status
On branch capitalization
nothing to commit, working tree clean
C:\Users\DELL\frontend-development\New Repo\aidhumanity-frontend>git status --ignored
On branch capitalization
Ignored files:
(use "git add -f <file>..." to include in what will be committed)
build/
node_modules/