From: Junio C Hamano Date: Sat, 31 Mar 2007 01:30:18 GMT Subject: Re: Did I miss something? git-clone doesn't grab all branches???? Message-ID: <7v1wj6yzbp.fsf@assigned-by-dhcp.cox.net> In-Reply-To: <460D42FE.1080703@freescale.com> Timur Tabi writes: > In the past, my clone of paulus/powerpc.git contained everything. > Every time I did a git-pull, it would grab everything. Then I could > do a local clone/checkout if I ever wanted to work on a branch (like > for-2.6.22). I didn't have to know the names of the branches when I > did git-clone. If that is how you use multiple trees, I think you can make that "My central repository which is a mirror of Paulus" a bare repository clone; keep updating it with git-fetch instead as a bare repository does not have an associated working tree. ( setup ) $ git clone --bare git://git.kernel.org/.../ paulus-mirror.git ( periodical mirror update from upstream ) $ cd paulus-mirror.git && git fetch ( forking off your play area ) $ git clone -l -s paulus-mirror.git foobranch.git $ cd foobranch.git $ git checkout --track -b foobranch origin/foobranch $ hack hack ( after mirror update ) $ cd foobranch.git $ git pull ;# this pulls from your mirror