On Wednesday, May 25, 2016 at 10:41:51 AM UTC-7, Konstantin Khomoutov wrote:
> On Wed, 25 May 2016 10:17:15 -0700 (PDT)
> That's not "HEAD is still pointing to master." but rather that's
> "remotes/origin/HEAD points to origin/master" which is a completely
> different thing.
> The ref "remotes/origin/HEAD" records the state of the origin remote at
> the time you have cloned it, and it pointed to the branch "master" as
> was found in the remote repository. The state of that branch is
> captured by your clone via the so-called "remote branch" named
> "origin/master", and that's what `git branch -a` is showing you.
> Your HEAD ref is OK, and it points to your local branch "develop" which
> is indicated by the asterisk character '*' which decorates that
> branch's name.
> Please read up on remote branches.  should be OK.
> And I highly recommend to read that whole book.
> 1. https://git-scm.com/book/en/v2/Git-Branching-Remote-Branches
Okay, thank you, I'll read that article in a moment.
I'm actually trying to solve a somewhat different issue, but cannot figure
out what is going wrong.
I'm converting some projects at my company, from Subversion to Git. Mostly
all has been going well.
I used "git svn clone etc..." to generate a local "remote" repository on my
machine (which will later get pushed to our network server).
I then created a working directory and am cloning projects/repositories one
at a time into my working directory and setting them up. One of the things
that I want to do is created a develop branch for each project, and do
development on develop rather than master.
This is all working fine for the basic projects, but I'm having troubles
with submodules. The steps I follow are:
1. git clone base project, checkout 'develop' branch, push to origin
2. git clone submodule, checkout 'develop' branch, push to origin
3. git submodule add -b develop origin/submodule submodule
4. git commit, push
Then I go back and check out my back project in a new directory, using
--recursive, to see if everything is fine...
Well, main project is fine, but the submodules all show "detached head",
rather than showing develop branch as current branch.
Further, if I view the project in SourceTree, it doesn't even let me check
out 'develop', though it shows it present on origin.
I am very confused by all this...
You received this message because you are subscribed to the Google Groups "Git
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email
For more options, visit https://groups.google.com/d/optout.