【发布时间】:2021-08-31 05:57:57
【问题描述】:
在通过 brew 更新了一堆实用程序后,我将 fish shell 从接近 3.0 升级到了 3.3.1。现在,每次我在终端中点击return 时,都会出现一系列迄今为止无害但非常分散注意力的错误消息。
$ ls
README.md node_modules package.json static tsconfig.json
mdsvex.config.cjs package-lock.json src svelte.config.js work.eqg
fatal: ambiguous argument '^/dev/null': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
fatal: bad revision '^/dev/null'
fatal: Refusing to point HEAD outside of refs/
fatal: No names found, cannot describe anything.
head: ^/dev/null: No such file or directory
$ echo Hi ????????
Hi ????????
fatal: ambiguous argument '^/dev/null': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
fatal: bad revision '^/dev/null'
fatal: Refusing to point HEAD outside of refs/
fatal: No names found, cannot describe anything.
head: ^/dev/null: No such file or directory
$
fatal: ambiguous argument '^/dev/null': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
fatal: bad revision '^/dev/null'
fatal: Refusing to point HEAD outside of refs/
fatal: No names found, cannot describe anything.
head: ^/dev/null: No such file or directory
$
注意:我已将提示简化为 $,因为其中很多都不能很好地复制/粘贴。 Fwiw,我正在使用 Bob the Fish,这是截图:
无论如何...关于如何解决此问题的任何想法?
【问题讨论】:
标签: macos macos-big-sur fish