My branch name is in capital, say, ABC. I misused it in the lower-case, abc.
git check out abc
Even under the lower-case brach (abc), it still worked with rebase. After rebase, I started to push the code,
git push origin ABC -f
Got the error,
fatal: the remote end hung up unexpectedly
Then I checked out the capital name branch, ABC. And still got the error when pushing it.
I found another post discussed it but no solution for my problem. Git: 'Master cannot be resolved to branch' after merge