zsh提示符显示当前git分支旁边的> R

4
我使用 zsh ,最近开始看到这个 master > R ,而不是只有 master
以下是git状态;
On branch master
Your branch is up-to-date with 'upstream/master'.
Last command done (1 command done):
   edit d36ecbb cfn II
No commands remaining.
You are currently editing a commit while rebasing branch 'DEV-87' on '7b06369'.
  (use "git commit --amend" to amend the current commit)
  (use "git rebase --continue" once you are satisfied with your changes)

nothing to commit, working directory clean

有什么想法吗?

git status 显示了什么?我猜你正在进行 rebase 操作。 - Jonathon Reinhart
就像我猜测的那样,你正在进行一次变基操作。你可以使用 git rebase --abort 命令来中止它。接下来的问题是,为什么你没有意识到自己正在执行变基操作呢?Git 不是一个随意发出命令的东西。 - Jonathon Reinhart
1个回答

7
根据您的“屏幕截图”,看起来您正在变基操作,因此出现了>R标记... 如果要中止变基操作,请输入git rebase --abort

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接