git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Paul Williamson <paul.williamson@mediamiser.com>
To: Jacob Keller <jacob.keller@gmail.com>
Cc: "git@vger.kernel.org" <git@vger.kernel.org>
Subject: RE: Switching branches not working in a cloned repo
Date: Mon, 19 Sep 2016 20:13:48 +0000	[thread overview]
Message-ID: <YQXPR01MB00235F24FF4BF39B9DDB252B9EF40@YQXPR01MB0023.CANPRD01.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <CA+P7+xqR6i6eieVrEHXMNuVo6yfmRRZqX8RdVAE7y4=xSLLYyA@mail.gmail.com>

-----Original Message-----
From: Jacob Keller [mailto:jacob.keller@gmail.com] 

>Try a fresh clone with "git checkout --track origin/web_dev" and then a "git status -v" and let us know what happens. I suspect that older clones have the correct branches already setup for tracking, but the new clone >isn't doing it automatically, so when you run git checkout web_dev you're just creating a new local copy.

Hi Jake, this worked!

Your explanation seems correct - I could still list the remote branches, thanks to the command that Philip suggested, but the linkage between the two was not there by default for some reason. Very strange, I have never seen that happen before.

Anyway, this solution is sound and seems to set everything (history etc) back to how it should be.

Thanks very much for your help!

Paul

      reply	other threads:[~2016-09-19 20:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-19 13:58 Switching branches not working in a cloned repo Paul Williamson
2016-09-19 16:16 ` Philip Oakley
2016-09-19 18:01   ` Paul Williamson
2016-09-19 19:50 ` Jacob Keller
2016-09-19 20:13   ` Paul Williamson [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=YQXPR01MB00235F24FF4BF39B9DDB252B9EF40@YQXPR01MB0023.CANPRD01.PROD.OUTLOOK.COM \
    --to=paul.williamson@mediamiser.com \
    --cc=git@vger.kernel.org \
    --cc=jacob.keller@gmail.com \
    /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.
Code repositories for project(s) associated with this public 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).