[Freeswitch-users] freeswitch and git problem/question
mrene_lists at avgs.ca
Fri Sep 24 07:29:30 PDT 2010
This state is called detach head mode as is meant to look around the tree and checkout different versions, if you want to pull changes and/or do local commits, you need to have an active local branch.
The command "git branch" will list all local branches, you should have one named "master", this is the main one. "git branch -r" will list remote branches (the master branch is also called origin/master when dealing with git remote). It is important to remember that you always make a copy of a repository with git, and that you synchronize that copy when you pull/push.
In order to switch back to the master branch, simply do "git checkout master". This will bring you back to a normal operational mode where you will be able to pull as you want.
Avant-Garde Solutions Inc
Office: + 1 (514) 664-1044 x100
Cell: +1 (514) 664-1044 x200
mrene at avgs.ca
On 2010-09-24, at 4:37 AM, covici at ccs.covici.com wrote:
> Hi. I ran into a strange problem with git yesterday -- I had checked
> out an older commit using git co and the commit number for testing, but
> git would not let me go back to head -- it complained that I was not in
> a branch and wanted me to specify the repository and refs on the command
> line, but nothing I did worked, so I wiped the whole thing out and
> started again. However there has got to be a way to do this -- I am
> sure I did things like that in other git projects, so what am I doing
> wrong because I don't know git as well as I would like to.
> Thanks for any ideas on this.
> Your life is like a penny. You're going to lose it. The question is:
> How do
> you spend it?
> John Covici
> covici at ccs.covici.com
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
More information about the FreeSWITCH-users