MasoudAsadzadeh
MasoudAsadzadeh

Reputation: 75

fix detached head after rebase of one repository to another remote repository

After doing rebase and several git rebase --continue I ended up in a detached head. My goal is to push my local commits in my-feature branch in origin remote to the master branch in github remote. Any solution?

Upvotes: 0

Views: 376

Answers (1)

sepideha
sepideha

Reputation: 1779

Finish the rebase until you don't get git rebase --continue in your status.

If still detached, create a temporary branch in the detached location:

$ git branch tmp

Then push tmp to the master branch on github:

$ git push github tmp:master

Upvotes: 1

Related Questions