【发布时间】:2022-08-18 18:59:36
【问题描述】:
我以为我已经复制了我想检查 git diff 的文件路径,但不小心在我的剪贴板中出现了 \"quit()\" 并匆忙返回。所以我不小心跑了
(base) user@MacBook-Air sage % git diff quit()
function>
function>
现在,在 git 中似乎没有任何工作。例如:
(base) user@MacBook-Air sage % git diff HEAD
git:5: command not found: quit
(base) user@MacBook-Air sage % git status
git:6: command not found: quit
(base) user@MacBook-Air sage % git diff
git:7: command not found: quit
(base) user@MacBook-Air sage % git log
git:8: command not found: quit
(base) user@MacBook-Air sage % git branch --list
git:9: command not found: quit
有谁知道我做了什么来得到这个?此外,您知道如何解决它吗?我在这个分支上的所有更改都已提交,但尚未在远程分支上。
我试图谷歌如何重置 git,但这只是让我得到了git reset 的结果。
-
您是否尝试过启动一个新的外壳?