[git-users] HEAD is not pointing to a branch
Hi, I our open source project we are using git. I have created a release branch, release-2.2.16, that we have done some fixes on and now I want to add the stable release to the master ( and develop). So from Eclipse I checkout the master called origin/master. Then I select Team -- 'Merge' and I get the following message: HEAD is not pointing to a branch Any ideas why I get this? How can I handle it? Here is repos that I am using: git://eclipse-ccase.git.sourceforge.net/gitroot/eclipse-ccase/eclipse-ccase br, //mike -- You received this message because you are subscribed to the Google Groups Git for human beings group. To view this discussion on the web visit https://groups.google.com/d/msg/git-users/-/O3jGLlJrYSIJ. To post to this group, send email to git-users@googlegroups.com. To unsubscribe from this group, send email to git-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/git-users?hl=en.
Re: [git-users] HEAD is not pointing to a branch
On Wed, Jun 27, 2012 at 12:30 PM, mike mikaelpetter...@hotmail.com wrote: So from Eclipse I checkout the master called origin/master. Then I select Team -- 'Merge' and I get the following message: HEAD is not pointing to a branch You do not have any local branch pointing to checked out commit now really. You've just checked out a commit as your HEAD that is the head of the origin/master branch. But you need to checkout a new branch master that will be a copy (local fork) of the origin/master or more probably you need to checkout your existing master and merge origin/master into it. -- Serge Matveenko se...@matveenko.ru http://www.ohloh.net/accounts/lig http://ru.linkedin.com/in/sergematveenko -- You received this message because you are subscribed to the Google Groups Git for human beings group. To post to this group, send email to git-users@googlegroups.com. To unsubscribe from this group, send email to git-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/git-users?hl=en.
Re: [git-users] HEAD is not pointing to a branch
So from Eclipse I checkout the master called origin/master. Then I select Team -- 'Merge' and I get the following message: HEAD is not pointing to a branch You do not have any local branch pointing to checked out commit now really. You've just checked out a commit as your HEAD that is the head of the origin/master branch. But you need to checkout a new branch master that will be a copy (local fork) of the origin/master or more probably you need to checkout your existing master and merge origin/master into it. How can I do that? Which command? Or do I do it from Eclipse? ( Attach picture from Eclipse). br, //mike -- Serge Matveenko se...@matveenko.ru http://www.ohloh.net/accounts/lig http://ru.linkedin.com/in/sergematveenko -- You received this message because you are subscribed to the Google Groups Git for human beings group. To view this discussion on the web visit https://groups.google.com/d/msg/git-users/-/NByO_y-s_yMJ. To post to this group, send email to git-users@googlegroups.com. To unsubscribe from this group, send email to git-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/git-users?hl=en. attachment: git_problem.JPG
Re: [git-users] HEAD is not pointing to a branch
On Wednesday, June 27, 2012 12:38:07 PM UTC+2, mike wrote: You've just checked out a commit as your HEAD that is the head of the origin/master branch. But you need to checkout a new branch master that will be a copy (local fork) of the origin/master or more probably you need to checkout your existing master and merge origin/master into it. How can I do that? Which command? Or do I do it from Eclipse? ( Attach picture from Eclipse). Can you try checking out origin/master as a local tracking branch master? On the command line you can do it like this: git checkout -t origin/master In Eclipse, maybe you can right-click the origin/master branch under Remote tracking folder, and do something like track locally. Not sure as I haven't got Eclipse running here. -- You received this message because you are subscribed to the Google Groups Git for human beings group. To view this discussion on the web visit https://groups.google.com/d/msg/git-users/-/qqo7IPJeYH4J. To post to this group, send email to git-users@googlegroups.com. To unsubscribe from this group, send email to git-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/git-users?hl=en.
Re: [git-users] HEAD is not pointing to a branch
Hi, I managed to do the following: git checkout master Branch master set up to track remote branch master from origin. Switched to a new branch 'master' Then I merged release-2.2.16 to this branch. When done I pushed it. I checked and remote master now contains my changes. Thanks for all help! //mike On Wednesday, June 27, 2012 1:41:41 PM UTC+2, Thomas Ferris Nicolaisen wrote: On Wednesday, June 27, 2012 12:38:07 PM UTC+2, mike wrote: You've just checked out a commit as your HEAD that is the head of the origin/master branch. But you need to checkout a new branch master that will be a copy (local fork) of the origin/master or more probably you need to checkout your existing master and merge origin/master into it. How can I do that? Which command? Or do I do it from Eclipse? ( Attach picture from Eclipse). Can you try checking out origin/master as a local tracking branch master? On the command line you can do it like this: git checkout -t origin/master In Eclipse, maybe you can right-click the origin/master branch under Remote tracking folder, and do something like track locally. Not sure as I haven't got Eclipse running here. -- You received this message because you are subscribed to the Google Groups Git for human beings group. To view this discussion on the web visit https://groups.google.com/d/msg/git-users/-/1IhtFR7jzdwJ. To post to this group, send email to git-users@googlegroups.com. To unsubscribe from this group, send email to git-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/git-users?hl=en.
Re: [git-users] HEAD is not pointing to a branch
Just, FYI, git checkout master automatically does the tracking of a remote branch with the same name by convention. This is due to the branch.autosetupmerge configuration switch being on by default. On Wednesday, June 27, 2012 2:16:15 PM UTC+2, mike wrote: Hi, I managed to do the following: git checkout master Branch master set up to track remote branch master from origin. Switched to a new branch 'master' Then I merged release-2.2.16 to this branch. When done I pushed it. I checked and remote master now contains my changes. Thanks for all help! //mike On Wednesday, June 27, 2012 1:41:41 PM UTC+2, Thomas Ferris Nicolaisen wrote: On Wednesday, June 27, 2012 12:38:07 PM UTC+2, mike wrote: You've just checked out a commit as your HEAD that is the head of the origin/master branch. But you need to checkout a new branch master that will be a copy (local fork) of the origin/master or more probably you need to checkout your existing master and merge origin/master into it. How can I do that? Which command? Or do I do it from Eclipse? ( Attach picture from Eclipse). Can you try checking out origin/master as a local tracking branch master? On the command line you can do it like this: git checkout -t origin/master In Eclipse, maybe you can right-click the origin/master branch under Remote tracking folder, and do something like track locally. Not sure as I haven't got Eclipse running here. -- You received this message because you are subscribed to the Google Groups Git for human beings group. To view this discussion on the web visit https://groups.google.com/d/msg/git-users/-/ajzKax7N--oJ. To post to this group, send email to git-users@googlegroups.com. To unsubscribe from this group, send email to git-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/git-users?hl=en.