有时,当我按Github上的Sync按钮时,它会告诉我:
Failed to sync this branch
You might need to open a shell and debug the state of this repo然后我转到控制台并输入一个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如果我正确理解了这一点,那么:
> git rebase --continue
Stray path/to/repo/.git/rebase-apply directory found.
Use "git am --abort" to remove it.
我是这样做的:
> git am --abort在此之后,重基操作完成/中止,并再次按Github for Windows的Sync按钮成功地按下提交。
--我只是想知道,如果没有冲突,为什么同步操作一开始就失败了?
发布于 2014-09-17 07:39:55
我是Windows开发者的GitHub之一。
GitHub for Windows生成的日志文件将有助于了解同步时发生的情况:
https://help.github.com/articles/accessing-the-github-for-windows-log
我很想知道为什么重基失败了,因为从其他细节来看,这一切都应该完成.
发布于 2014-09-17 07:35:46
同步操作一开始失败?
因为GUI不想静默地完成重基,并且希望确保用户知道所述的重基。
https://stackoverflow.com/questions/25884373
复制相似问题