git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git-pull doesn't update my refs for remotes/origin/master

From
Michael J Gruber <git@drmicha.warpmail.net>
Date
Jul 25, 2011, 08:35 UTC
Message-ID
<4E2D2ADE.40407@drmicha.warpmail.net>
In-Reply-To
<4E2D223E.8090505@gmail.com>
Graeme Geldenhuys venit, vidit, dixit 25.07.2011 09:58:
Show 12 quoted lines
> 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
Previous: Graeme GeldenhuysNext: Graeme Geldenhuys
Message 2 of 3 in “git-pull doesn't update my refs for remotes/origin/master”
  1. Graeme GeldenhuysJul 25, 2011
  2. Michael J GruberJul 25, 2011
  3. Graeme GeldenhuysJul 25, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.