Github for Windows将回购置于"重新定位"状态,但表示"未能同步此分支"

che*_*ica 3 git github github-for-windows

有时当我按下SyncGithub for Windows上的按钮时,它会告诉我:

Failed to sync this branch
You might need to open a shell and debug the state of this repo
Run Code Online (Sandbox Code Playgroud)

然后我去控制台输入一个git status.大部分时间发生这种情况时,会git status告诉我以下信息:

> git status
On branch master
Your branch is ahead of 'origin/master' by 1 commit.
  (use "git push" to publish your local commits)

You are currently rebasing.
  (all conflicts fixed: run "git rebase --continue")

nothing to commit, working directory clean
Run Code Online (Sandbox Code Playgroud)

如果我理解正确的话,那么:

  • Github for Windows开始了Rebase操作,但由于某种原因没有成功.
  • 工作副本很干净.没有可以被同步覆盖的已更改文件,也没有冲突.
  • 一旦所有冲突得到解决,Git告诉我继续进行rebase操作(尽管在这种情况下,没有冲突).

> git rebase --continue

Stray path/to/repo/.git/rebase-apply directory found.

Use "git am --abort" to remove it.

我这样做:

> git am --abort
Run Code Online (Sandbox Code Playgroud)

之后,Rebase操作完成/中止,再次按下Github for Windows的同步按钮成功推送提交.

我只是想知道,如果没有冲突,为什么Sync op首先失败?

Bre*_*ter 5

我是Windows开发人员的GitHub之一.

GitHub for Windows生成的日志文件有助于了解执行同步时发生的情况:

https://help.github.com/articles/accessing-the-github-for-windows-log

我很想知道为什么rebase失败了,因为看起来它应该完成其他细节的判断......