Rebasing in smartgit "git-am is in progress"
GitRebaseGit RebaseSmartgitGit Problem Overview
I will try to explain the problem that I have. I have used the rebase
option via git bash many times. Now I have SmartGit and don’t know why rebase
is not correct.
Step 1:
Step 2:
Step 3:
The result is that HEAD
detaches.
Git Solutions
Solution 1 - Git
The same issue i have faced, i will delete the local branch in my machine and recreate it from origin each and every time. But finally i got the solution. I ran the below command
git am --abort
solved my problem.
Solution 2 - Git
The only thing that I could do to cancel out the rebase after getting this error message was to delete the .git\rebase-apply folder and all of its contents.
rm .\.git\rebase-apply
Solution 3 - Git
I encountered this in SourceTree, where branches had different .gitignore files. I resolved it by committing a matching .gitignore
prior to the merge.
Solution 4 - Git
I got this error error when trying to git pull –rebase origin master
.
The accepted git am --abort
didn't help, unfortunately, saying:
> error: You seem to have moved HEAD since the last 'am' failure. > > Not rewinding to ORIG_HEAD
But the good old pull did work (and the rebase started working after it, too):
git pull origin master