freeswitch and git problem/question
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@ccs.covici.com
On Fri, Sep 24, 2010 at 10:37 AM, <covici@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
When this happened to me, in other projects (not FS), I've done a: "git pull origin master" and that worked. Anyway, git gurus, please add more infos/instructions -giovanni -- Sincerely, Giovanni Maruzzelli Cell : +39-347-2665618
Welcome to GIT... the larger question is why were you trying to step back? Did you find a bug? Are you just trying to overcome the bug by stepping back in the code? Why not report the issue so it can be fixed? /b On Sep 24, 2010, at 3:37 AM, covici@ccs.covici.com wrote:
I ran into a strange problem with git yesterday
I thought I had a bug, but turned out fs was not the problem, but I wanted to check and see and this is where I ran into my git question. Brian West <brian@freeswitch.org> wrote:
Welcome to GIT... the larger question is why were you trying to step back? Did you find a bug? Are you just trying to overcome the bug by stepping back in the code? Why not report the issue so it can be fixed?
/b
On Sep 24, 2010, at 3:37 AM, covici@ccs.covici.com wrote:
I ran into a strange problem with git yesterday
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Your life is like a penny. You're going to lose it. The question is: How do you spend it? John Covici covici@ccs.covici.com
Hi, 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. Mathieu Rene Avant-Garde Solutions Inc Office: + 1 (514) 664-1044 x100 Cell: +1 (514) 664-1044 x200 mrene@avgs.ca On 2010-09-24, at 4:37 AM, covici@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@ccs.covici.com
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
OK, thanks that explains things better. Mathieu Rene <mrene_lists@avgs.ca> wrote:
Hi,
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.
Mathieu Rene Avant-Garde Solutions Inc Office: + 1 (514) 664-1044 x100 Cell: +1 (514) 664-1044 x200 mrene@avgs.ca
On 2010-09-24, at 4:37 AM, covici@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@ccs.covici.com
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Your life is like a penny. You're going to lose it. The question is: How do you spend it? John Covici covici@ccs.covici.com
participants (4)
-
Brian West
-
covici@ccs.covici.com
-
Giovanni Maruzzelli
-
Mathieu Rene