Guest96675 is now known as new2emc
Any git gurus around? I think I've hosed up git pretty good. To begin with, when I run "git branch", I get: * (no branch)<newline> master<newline> v2.4_branch<newline> Is that "* (no branch)" thing legit?
yes, it means your head is disconnected
just checkout the branch you want (git checkout master)
ha, that sounds about right. So I'm in "headless chicken mode"?
do you know how you got there?
Well, not exactly, but I made a big patch (covering 8 files, my first mistake?) to send to JT, and I didn't send it right away, and it got a week or two stale. So when JT tried to apply it there was a conflict on one of the files, so he couldn't apply any of the patch. So I tried to resolve the conflict, but git merge(?) would only say "You are in the middle of a conflicted merge", I couldn't get it to show me the "their version / my version" display..
. (to be continued)...
So I tried to hand edit out (hand revert?) the conflicting changes in the last file. That sort of worked, and once I got to that point I could again do "git pull --rebase", which I hadn't been able to do. Anyway, now when I checkout v2.4_branch, it seems to put everything back like it was (conflicted). I've done "git reset --hard HEAD" a couple of times now, while checked out master and v2.4_branch. It doesn't seem to fix both at once, and it keeps a
sking me to "rm -rf .dotest", which I've done a couple of times. (TBC)...
Does git search my whole home directory for patch files? I thought if I moved them to my desktop, they wouldn't bother anything there, is that not so? I'd happily remove git and emc2-dev and reclone at this point, nothing seems right. Any advice appreciated.
when you asked for a guru you weren't kidding
Yeah, "it's impossible to make anything foolproof because fools are so ingenious", lol. I forgot who said that.
do you have your patch so you won't lose that work?
Yes, but should I rename it first? Encrypt it first? Pull it off onto another PC first? (Yikes!)
no, git won't mess with it, it's just a file git doesn't care about
It's like the "funniest joke ever written" sketch from Monty Python
git checkout master; git reset --hard origin/master
er are you working on master or v2.4_branch?
Oh, yeah, that was another thing, it now seems insufficient to do git pull --rebase, I get a paragraph saying "you asked me to pull, but you didn't say where or what version...etc" So now I have to do "git pull --rebase origin master" or else git is unhappy
I believe JT wants to do the docs work in 2.4
that's probably because you're not in a tracking branch anymore
but I sometimes compile a new master-emc2 version
ok, git checkout v2.4_branch; git reset --hard origin/v2.4_branch; git pull
git pull without --rebase?
it won't matter in this case
kkirwan@kkirwan-mwbhfw:~/emc2-dev$ git checkout v2.4_branch
Previous HEAD position was 6e4d25c... get rid of unwanted underscores in labels, indexes, and references
fatal: you need to resolve your current index first
I have no clue what that means
So, what do you think, uninstall (completely) git, and delete emc2-dev and reinstall git and reclone?
clearly git and I are not getting off to a good start, lol
sure you could get a new clone (uninstalling git is not necessary) - but maybe you should wait for someone smarter to happen by instead
OK, sure, I'll do that (wait awhile). But it wouldn't take long to re-git and reclone, and is kind of tempting. And if it *still* didn't work I have time to move all my work to the newer PC and wipe the old one.
yeah you could get a new clone and 'git am' your patch in it and be done.
git am? I don't know that one, I'll have to look it up.
it's how you apply the result of git format-patch
There's a hole in most of these newbie guides to git, btw. They seem to say (blah, blah, how to get started), then at this point you resolve your conflicts if there are any, (blah, blah, how to finish up). It would be nice if they went into more detail on the "inherently obvious" part in the middle.
yeah understanding and resolving conflicts is the hard part of a revision control system
OK, well, thanks for helping, and thanks also for your advice on the graphics fix, which I have not yet completely tried. AXIS is working and git isn't, so git is first in line.