git@vger.kernel.org list mirror (unofficial, one of many)
 help / color / mirror / code / Atom feed
From: "Raymond E. Pasco" <ray@ameretat.dev>
To: "Wolfgang Graf" <wg@wogra.net>, <git@vger.kernel.org>
Subject: Re: Sequent repos ,, pull without checkout
Date: Thu, 03 Sep 2020 18:25:16 -0400	[thread overview]
Message-ID: <C5E34SOYIUI0.BQMTEWUI28K5@ziyou.local> (raw)
In-Reply-To: <20200903083859.Horde.d_JTRsvdjC38RffOwMv54lJ@webmail.your-server.de>

This is the expected behavior. The branches in a repository (what you
see when you run "git branch" with no arguments") are different from the
remote-tracking refs (what you see when you run "git branch -r", and
which are updated by "git fetch"). You can't track another repository's
remote-tracking refs with your remote-tracking refs, just its actual
branches.

The part which may be confusing is that "git checkout", as a shortcut,
lets you attempt to check out a branch that does not exist, and if a
branch with the same name exists on a remote, it will create the branch
and set it up to track that remote branch.

If you wanted to fetch branches from multiple other repositories,
though, you would ordinarily add those repositores as remotes, rather
than pushing everything through a single existing remote.

Hope that helps.

      reply	other threads:[~2020-09-03 22:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-03  6:38 Wolfgang Graf
2020-09-03 22:25 ` Raymond E. Pasco [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

  List information: http://vger.kernel.org/majordomo-info.html

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

  git send-email \
    --in-reply-to=C5E34SOYIUI0.BQMTEWUI28K5@ziyou.local \
    --to=ray@ameretat.dev \
    --cc=git@vger.kernel.org \
    --cc=wg@wogra.net \
    --subject='Re: Sequent repos ,, pull without checkout' \
    /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

Code repositories for project(s) associated with this inbox:

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).