public inbox for git@vger.kernel.org 
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox•com>
To: Ross Boylan <ross@biostat•ucsf.edu>
Cc: Chris Packham <judge.packham@gmail•com>, git@vger•kernel.org
Subject: Re: confused about remote branch management
Date: Wed, 23 Jul 2014 14:41:19 -0700	[thread overview]
Message-ID: <xmqqmwbzda80.fsf@gitster.dls.corp.google.com> (raw)
In-Reply-To: <1406143336.29001.185.camel@localhost> (Ross Boylan's message of "Wed, 23 Jul 2014 12:22:16 -0700")

Ross Boylan <ross@biostat•ucsf.edu> writes:

> I still don't know what I need to do to update origin/master in my local
> repo.
>
> Regarding Kevin's suggestion, I just tried "git fetch origin master".

I think Kevin's suggestion was 'To older git, "git fetch origin
master" tells it to fetch master without updating origin/master, so
it is understandable that your origin/master was not molested'.

Either

	git fetch origin master:refs/remotes/origin/master

or if you want to be more explicit and unambiguous:

	git fetch origin refs/heads/master:refs/remotes/origin/master

should work on all versions of git.

  reply	other threads:[~2014-07-23 21:41 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-23  2:49 confused about remote branch management Ross Boylan
2014-07-23  7:40 ` Chris Packham
2014-07-23 19:22   ` Ross Boylan
2014-07-23 21:41     ` Junio C Hamano [this message]
2014-07-23 23:30       ` Ross Boylan
2014-07-23 23:51         ` Junio C Hamano
2014-07-24  0:24           ` Ross Boylan
2014-07-23 13:30 ` Kevin
     [not found] ` <CAO54GHBEexASvZcdJqDtgYkfecGbuZFLneC6Nr8u6CYfXuUPog@mail.gmail.com>
2014-07-23 18:54   ` Ross Boylan

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=xmqqmwbzda80.fsf@gitster.dls.corp.google.com \
    --to=gitster@pobox$(echo .)com \
    --cc=git@vger$(echo .)kernel.org \
    --cc=judge.packham@gmail$(echo .)com \
    --cc=ross@biostat$(echo .)ucsf.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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