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

Qn about git pull and git fetch

From
suvayu ali <fatkasuvayu+linux@gmail.com>
Date
Sep 28, 2010, 16:59 UTC
Message-ID
<AANLkTi=-UU8X-7h8c4=UENRwNe+G2xGy54YhvWPnnY7y@mail.gmail.com>
Hi everyone,

This is my first post to the list. I am a new (few months now) git user and I use it for source code and notes for my research projects. I noticed something during the course of my use. If I have a remote tracking repository, and I do a `git pull origin master', the latest changes are merged into my currently checked out branch. But the references to the remote repo are not. So when I fire up gitk like this, `gitk --all &' I don't see the latest commits for origin/master. I have to manually run `git fetch origin' or `git remote update origin' to see the updated commits in gitk.

This is not an inconvenience for me, just a little puzzling since the man page says git pull runs `git fetch' followed by `git mege'. Just out of curiosity, is there any reason for this choice?

-- 
Suvayu

Open source is the future. It sets us free.
Next: Brian Gernhardt
Message 1 of 5 in “Qn about git pull and git fetch”
  1. suvayu aliSep 28, 2010
  2. Brian GernhardtSep 28, 2010
  3. suvayu aliSep 28, 2010
  4. Eric RaibleSep 28, 2010
  5. Brian GernhardtSep 28, 2010

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.