Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!eternal-september.org!feeder.eternal-september.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; '16,': 0.03; 'subject:: [': 0.04; 'say,': 0.05; 'subject:Question': 0.07; 'git': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'wrote': 0.14; 'question.': 0.14; 'personally,': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'redundant.': 0.16; 'sense,': 0.16; 'shooting': 0.16; 'skip:n 70': 0.16; 'subject:branches': 0.16; 'wrote:': 0.18; 'subject:] ': 0.20; '>>>': 0.22; 'directory.': 0.24; 'tutorials': 0.26; 'header:X -Complaints-To:1': 0.27; 'branches': 0.31; 'encouraged': 0.31; 'sep': 0.31; 'advice': 0.35; 'but': 0.35; 'there': 0.35; 'should': 0.36; 'turn': 0.37; 'to:addr:python-list': 0.38; 'files': 0.38; 'pm,': 0.38; 'rather': 0.38; 'little': 0.38; 'explain': 0.39; 'does': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'read': 0.60; 'then,': 0.60; "you'll": 0.62; 'pick': 0.64; 'more': 0.64; 'different': 0.65; 'frank': 0.68; 'to,': 0.72; 'listening': 0.74; 'obvious': 0.74; 'yourself': 0.78; 'etc,': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: "Frank Millman" Subject: Re: [OT] Question about Git branches Date: Tue, 16 Sep 2014 10:59:34 +0200 References: <878ulk7z7y.fsf@elektro.pacujo.net> X-Gmane-NNTP-Posting-Host: 197.86.205.231 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.3790.4657 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.4913 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 35 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1410857985 news.xs4all.nl 2957 [2001:888:2000:d::a6]:58355 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:77923 "Chris Angelico" wrote in message news:CAPTjJmr5gh8=1zPjG_KdTmA2QgT_5jj=kh=jyvRFv1atL1EeKw@mail.gmail.com... > On Tue, Sep 16, 2014 at 6:21 PM, Marko Rauhamaa wrote: >> "Frank Millman" : >> >>> 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