Reputation: 14435
Sometimes when I press the Sync
button on Github for Windows, it tells me:
Failed to sync this branch
You might need to open a shell and debug the state of this repo
I then go to the console and enter a git status
. Most of the time when this happens, git status
tells me the following info:
> 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
If I understand that correctly, then:
> git rebase --continue
Stray path/to/repo/.git/rebase-apply directory found.
Use "git am --abort" to remove it.
I do that:
> git am --abort
After that, the Rebase operation is finished/aborted, and pressing the Github for Windows' Sync button again successfully pushes the commits.
I'm just wondering, if there are no conflicts, why does the Sync op fail in the first place?
Upvotes: 3
Views: 324
Reputation: 2718
I'm one of the GitHub for Windows developers.
There's a log file that GitHub for Windows generates that will help understand what was occurring at the time of doing the sync:
https://help.github.com/articles/accessing-the-github-for-windows-log
I'd love to see why the rebase is failing, because it looks like it all should be completing judging by the other details...
Upvotes: 5
Reputation: 1323135
Sync op fail in the first place?
Because the GUI doesn't want to silently complete the rebase, and wants to make sure the user is aware of said rebase.
Upvotes: 1