All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael J Gruber <git@drmicha.warpmail.net>
To: Graeme Geldenhuys <graemeg.lists@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: git-pull doesn't update my refs for remotes/origin/master
Date: Mon, 25 Jul 2011 10:35:42 +0200	[thread overview]
Message-ID: <4E2D2ADE.40407@drmicha.warpmail.net> (raw)
In-Reply-To: <4E2D223E.8090505@gmail.com>

Graeme Geldenhuys venit, vidit, dixit 25.07.2011 09:58:
> Hi,
> 
> Any idea why this happens? When I do a 'git pull origin master' while in
> the master branch, it fetches all the latest commits, but doesn't update
> the 'remotes/origin/master' reference. When I do a 'gitk', the
> remotes/origin/master reference is still pointing to the old original
> HEAD commit. Only when I do a 'git push origin master', does it update
> the remotes/origin/master references?
> 
> I'm using git version 1.7.0.4 as is include with Ubuntu 10.04
> 
> Here is my .git/config file:
...

Here's my quote from git-pull's man page:

A parameter <ref> without a colon is equivalent to <ref>: when
pulling/fetching, so it merges <ref> into the current branch without
               storing the remote branch anywhere locally

I.e., just do "git pull origin".

Michael

  reply	other threads:[~2011-07-25  8:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-25  7:58 git-pull doesn't update my refs for remotes/origin/master Graeme Geldenhuys
2011-07-25  8:35 ` Michael J Gruber [this message]
2011-07-25  8:48   ` Graeme Geldenhuys

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=4E2D2ADE.40407@drmicha.warpmail.net \
    --to=git@drmicha.warpmail.net \
    --cc=git@vger.kernel.org \
    --cc=graemeg.lists@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.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.