From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15221 invoked by alias); 27 Oct 2007 17:58:18 -0000 Received: (qmail 15214 invoked by uid 22791); 27 Oct 2007 17:58:18 -0000 X-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00,DK_POLICY_SIGNSOME,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 27 Oct 2007 17:58:15 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.1) with ESMTP id l9RHwD7G015669 for ; Sat, 27 Oct 2007 13:58:13 -0400 Received: from pobox.stuttgart.redhat.com (pobox.stuttgart.redhat.com [172.16.2.10]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l9RHwCvR012803; Sat, 27 Oct 2007 13:58:12 -0400 Received: from [IPv6:::1] (sebastian-int.corp.redhat.com [172.16.52.221]) by pobox.stuttgart.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id l9RHw9xj010952; Sat, 27 Oct 2007 19:58:10 +0200 Message-ID: <47237C31.80909@redhat.com> Date: Sat, 27 Oct 2007 17:58:00 -0000 From: Tim Moore User-Agent: Thunderbird 1.5.0.12 (X11/20070719) MIME-Version: 1.0 To: Sami Wagiaalla CC: frysk Subject: Re: frysk git repository (workflow) References: <471F7C3A.4020204@redhat.com> <4721FF0F.1020807@redhat.com> In-Reply-To: <4721FF0F.1020807@redhat.com> X-Enigmail-Version: 0.94.3.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Mailing-List: contact frysk-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: frysk-owner@sourceware.org X-SW-Source: 2007-q4/txt/msg00087.txt.bz2 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Sami Wagiaalla wrote: > If I am working on several tasks what is the recommended work flow. > > Do I create clones for each task I am working on or branches within the > same clone. > Usually you create branches within one repo and switch between them using git-checkout. If you need to look at your work in the non-checked out branches you can use git-diff or git-cat-file. There are some tricks to "check out" a source tree without an associated repository, but if you really want to have more than one branch checked out, you can clone your local repository... It's extremely fast to switch between branches in git. Unfortunately it's not so fast to rebuild frysk once you've switched :/ though git does take care to only modify files that are different on the branches. > Also how do I publish a branch on sourceware; it seems like the branches > I create > with git branch foo are local branches. And in that case is it git push origin sami:refs/heads/sami > recommended that I > publish all my scratch branches on sourceware instead of having local > clones/branches ? No, you should publish branches that contain work that you want others to check out but which won't be checked into the master branch imminently. Tim - -- Red Hat France SARL, 171 Avenue Georges Clemenceau 92024 Nanterre Cedex, France. Siret n° 421 199 464 00056 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iD8DBQFHI3wxeDhWHdXrDRURAtyiAKCgeP9e8gdLEbsywlFFBH8x6bfCIgCdFuXn JjezvITKDAMGAPq39OnJKA8= =3iOn -----END PGP SIGNATURE-----