Why does this series of git-svn commands result in a detached HEAD?
I do this:
$ git svn clone http://monsterdebugger.googlecode.com/svn/ -s --prefix=svn/ monsterdebugger $ cd monsterdebugger $ git branch -a * master remotes/svn/trunk $ git co remotes/svn/trunk Note: checking out 'remotes/svn/trunk'. You are in 'detached HEAD' state. <And so on...>
I guess I’m not fully understanding what’s going on under the hood here. Shouldn’t remotes/svn/trunk be a tracking branch against the svn repo? Why did I end up with a detached head?
One Solution collect form web for “Why does this series of git-svn commands result in a detached HEAD?”
It’s because it’s a remote branch. You need to create a local branch for it, with something like:
git checkout -b my-trunk remotes/svn/trunk