?49
in your prompt means there are 49 untracked files in the current Git repository.
(?49
你迅捷的方式有在当前Git仓库49个未跟踪文件。)
From the Powerlevel10k FAQ :
(从Powerlevel10k常见问题解答中 :)
Q: Why do I have a question mark symbol in my prompt?
(问:为什么提示中有问号符号?)
A: It means you have untracked files in the current Git repository.
(答:这意味着您在当前的Git存储库中有未跟踪的文件。)
Type git status
to see these files. (输入git status
以查看这些文件。)
You can change this symbol or disable the display of untracked files altogether. (您可以更改此符号或完全禁用未跟踪文件的显示。)
Search for "untracked files" in ~/.p10k.zsh
. (在~/.p10k.zsh
搜索“未跟踪的文件”。)
If you've created a Git repository at the root of your home directory to store dotfiles, you probably want to ignore untracked files in it.
(如果您在主目录的根目录下创建了一个Git存储库来存储点文件,则可能要忽略其中未跟踪的文件。)
You can achieve this by executing the following command: (您可以通过执行以下命令来实现:)
git -C ~ config status.showuntrackedfiles no
This will have several effects:
(这将产生几种效果:)
You can undo the above command with the following command:
(您可以使用以下命令撤消上述命令:)
git -C ~ config --unset status.showuntrackedfiles
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…