我使用图形 git 应用程序将我的分支重置为较早的提交,保留更改。
然而,之前移动的文件 ( git mv Anchor.jsx Anchor.tsx
) 变成了添加和删除:
$ git status
git status
On branch more-pre-project-creation-fixes
Changes to be committed:
(use "git restore --staged <file>..." to unstage)
deleted: components/atoms/Anchor.jsx
new file: components/atoms/Anchor.tsx
如何使用 git 命令行解决此问题?