Re: Did I miss something? git-clone doesn't grab all branches????

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Timur Tabi <timur@xxxxxxxxxxxxx> 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

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]