I would like to merge a couple of branches in my project but I don't know how to get Git to merge. I am doing my work on Linux Fedora 22.
I had the following Git structure on my project, where CAPITAL letters are branches and small letters are commits:
ATTINY
/
>- MASTER - a - b - c
Then, I checkout out a previously tagged version, did some editing and performed some commits:
>- TAG1.0 - e - f
That means: I was working in master, then I created branch ATTINY for safekeeping, then checked out an older (tagged) branch, did some work there.
Somewhere along the way (immediately?) I got a Detached HEAD. Oops.
So I made those commits become a branch, and checked it out. Then I finished my work, tagged it, and made a branch at that point called TAG2.0, then I updated master to point to it:
ATTINY
/
>- MASTER - a - b - c
>- TAG1.0 - e - f - OOPS (master) - g - h (...tag:2.0) - TAG2.0 (master)
Now I want to merge the work that I've done for branch TAG2.0 with the work that I left behind at branch ATTINY. How do I do it?
I tried to merge my TAG2.0 (master) branch with branch ATTINY but I got "Already up-to-date".
I did a git reset --hard ATTINY
based on Git merge reports "Already up-to-date" though there is a difference but now it looks like I only have the ATTINY branch stuff. I don't have any of the changes I made in the TAG2.0 branch.
No amount of git merge
seems to work, even though there are diff's between TAG2.0 and ATTINY branches.
Help me Obi-Wan. You're my only hope.