list mirror (unofficial, one of many)
 help / color / mirror / code / Atom feed
From: "Raymond E. Pasco" <>
To: "Wolfgang Graf" <>, <>
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: <>

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

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:

  List information:

* 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 \ \ \ \
    --subject='Re: Sequent repos ,, pull without checkout' \

* 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:

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).