* Specifying default checkout branch in url
@ 2008-12-11 11:21 Resul Cetin
2008-12-11 11:45 ` Mikael Magnusson
0 siblings, 1 reply; 2+ messages in thread
From: Resul Cetin @ 2008-12-11 11:21 UTC (permalink / raw)
To: git
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Specifying default checkout branch in url
2008-12-11 11:21 Specifying default checkout branch in url Resul Cetin
@ 2008-12-11 11:45 ` Mikael Magnusson
0 siblings, 0 replies; 2+ messages in thread
From: Mikael Magnusson @ 2008-12-11 11:45 UTC (permalink / raw)
To: Resul Cetin; +Cc: git
2008/12/11 Resul Cetin <Resul-Cetin@gmx.net>:
> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-12-11 11:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-11 11:21 Specifying default checkout branch in url Resul Cetin
2008-12-11 11:45 ` Mikael Magnusson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).