Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #77923

Re: [OT] Question about Git branches

From "Frank Millman" <frank@chagford.com>
Subject Re: [OT] Question about Git branches
Date 2014-09-16 10:59 +0200
References <mailman.14043.1410848545.18130.python-list@python.org> <878ulk7z7y.fsf@elektro.pacujo.net> <CAPTjJmr5gh8=1zPjG_KdTmA2QgT_5jj=kh=jyvRFv1atL1EeKw@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.14048.1410857985.18130.python-list@python.org> (permalink)

Show all headers | View raw


"Chris Angelico" <rosuav@gmail.com> wrote in message 
news:CAPTjJmr5gh8=1zPjG_KdTmA2QgT_5jj=kh=jyvRFv1atL1EeKw@mail.gmail.com...
> On Tue, Sep 16, 2014 at 6:21 PM, Marko Rauhamaa <marko@pacujo.net> wrote:
>> "Frank Millman" <frank@chagford.com>:
>>
>>> You are encouraged to make liberal use of 'branches',
>>
>> Personally, I only use forks, IOW, "git clone". I encourage that
>> practice. Then, there is little need for "git checkout". Instead, I just
>> cd to a different directory.
>>
>> Branches and clones are highly analogous processwise; I would go so far
>> as to say that they are redundant.
>
> But rather than listening to, shall we say, *strange* advice like
> this, Frank, you'll do well to pick up a reliable git tutorial, which
> should explain branches, commits, the working tree, etc, etc, etc.
>

I don't want to turn this into a full-on Git discussion, so briefly -

1. I have read all the 'git' tutorials I can find, but they have not 
addressed my question.
2. Albert's response 'commit or stash files before switching branches' makes 
sense, and actually answers my question.
3. I have sympathy for Marko's position of using clones rather than 
branches. I realise it does not follow the 'git' philosophy, but it does 
make it more obvious 'where you are', and lessens the chances of shooting 
yourself in the foot.

Frank


Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[OT] Question about Git branches "Frank Millman" <frank@chagford.com> - 2014-09-16 08:22 +0200
  Re: [OT] Question about Git branches Marko Rauhamaa <marko@pacujo.net> - 2014-09-16 11:21 +0300
    Re: [OT] Question about Git branches Chris Angelico <rosuav@gmail.com> - 2014-09-16 18:29 +1000
      Re: [OT] Question about Git branches Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-09-16 22:14 +1000
        Re: [OT] Question about Git branches Chris Angelico <rosuav@gmail.com> - 2014-09-16 22:48 +1000
        Re: [OT] Question about Git branches Tim Delaney <timothy.c.delaney@gmail.com> - 2014-09-16 22:50 +1000
        Re: [OT] Question about Git branches Robert Kern <robert.kern@gmail.com> - 2014-09-16 17:08 +0100
        Re: [OT] Question about Git branches Chris Angelico <rosuav@gmail.com> - 2014-09-17 02:25 +1000
        Re: [OT] Question about Git branches Robert Kern <robert.kern@gmail.com> - 2014-09-16 20:11 +0100
        Re: [OT] Question about Git branches Tim Delaney <timothy.c.delaney@gmail.com> - 2014-09-17 11:47 +1000
    Re: [OT] Question about Git branches "Frank Millman" <frank@chagford.com> - 2014-09-16 10:59 +0200
      Re: [OT] Question about Git branches Sergey Organov <sorganov@gmail.com> - 2014-09-17 14:16 +0400
    Re: [OT] Question about Git branches Jason Swails <jason.swails@gmail.com> - 2014-09-16 09:19 -0400
      Re: [OT] Question about Git branches Marko Rauhamaa <marko@pacujo.net> - 2014-09-17 02:26 +0300
  Re: [OT] Question about Git branches Sergey Organov <sorganov@gmail.com> - 2014-09-17 16:04 +0400
    Re: [OT] Question about Git branches "Frank Millman" <frank@chagford.com> - 2014-09-17 17:52 +0200
    Re: [OT] Question about Git branches Chris Angelico <rosuav@gmail.com> - 2014-09-18 02:00 +1000

csiph-web