I got myself into a little bit of a local repo mess. Long story short, I had a copy of a remote repo; I created a branch called 'my_branch' in my local repo; I committed work a few times. I then just pushed the branch to the remote repo. Here's my local repo diagram...(since I've pushed my_branch to the remote, this is what remote looks like too).
--C0--------------C4-- (local master)
\
--C1-C2-C3-- (local my_branch)
I then decided to try to rebase, but I think I totally messed up. I also tried to do git reset --hard
and I think I corrupted my local repo some more. So I decided to start from a clean place. I grabbed my_branch from the remote repo following this.
I then checked out origin/my_branch from remote. (I now see that I have a "detached HEAD" in my GUI tool GitX.) Now...how do I merge this branch with origin/HEAD aka origin/master on remote?