【发布时间】:2020-03-21 10:10:42
【问题描述】:
~ master ?49 ❯ git status
> warning: could not open directory '.Trash/': Operation not permitted
On branch master
No commits yet
Untracked files:
(use "git add <file>..." to include in what will be committed)
~ master ?49 ❯
> nothing added to commit but untracked files present (use "git add" to track)
?49 是什么意思?是不是跟 Git 有关系?
另外,当我输入 git status 时,它会列出我所有的文件并给我这个:
> nothing added to commit but untracked files present (use "git add" to track)
【问题讨论】:
-
@maievS :您询问提示中字符的含义,但您没有发布如何定义提示字符串!
-
@maievS :在
git status上,git总是列出您的 git 目录中尚未放入 git 的文件。你必须下定决心:要么将文件添加到仓库中,要么将它们放入.gitignore。 -
这就是为什么我不喜欢使用
oh-my-zsh。它提供了大量用户不一定知道的定制,因此很难回答诸如“为什么我的 shell 会这样?”这样的问题。 (作为自定义创意的来源,我喜欢oh-my-zsh。) -
我怀疑 49 是指未跟踪文件的数量,
git status(但不是zsh)会忽略。
标签: git zsh oh-my-zsh git-untracked