git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Mikael Magnusson" <mikachu@gmail.com>
To: "Resul Cetin" <Resul-Cetin@gmx.net>
Cc: git@vger.kernel.org
Subject: Re: Specifying default checkout branch in url
Date: Thu, 11 Dec 2008 12:45:22 +0100	[thread overview]
Message-ID: <237967ef0812110345h51b79f13mefc45501ecb5b1b3@mail.gmail.com> (raw)
In-Reply-To: <200812111221.36561.Resul-Cetin@gmx.net>

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

      reply	other threads:[~2008-12-11 11:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-11 11:21 Specifying default checkout branch in url Resul Cetin
2008-12-11 11:45 ` Mikael Magnusson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=237967ef0812110345h51b79f13mefc45501ecb5b1b3@mail.gmail.com \
    --to=mikachu@gmail.com \
    --cc=Resul-Cetin@gmx.net \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).