Re: Specifying default checkout branch in url

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

 



2008/12/11 Resul Cetin <Resul-Cetin@xxxxxxx>:
> Hi,
> I have the problem that I want to checkout a specific branch in a git-clone
> run. Someone at the debian-mentors mailing list[1] has suggested to use a url
> like git://git.myserver.org/project.git#branchname to checkout a branch with
> the name branchname by default. But this doesn't seem to work. Is there
> already another way to encode this in the url?
> More information why I cannot change HEAD of the repository can be found in a
> bug report against debcheckout[2].
>
> Regards,
>        Resul
>
> [1] http://article.gmane.org/gmane.linux.debian.devel.mentors/34421
> [2] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=508433

Use a git init, remote add, fetch branchname:branchname sequence.

-- 
Mikael Magnusson
--
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]

  Powered by Linux