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

Re: origin/branchname and tracking branch pointing to different commits?

From
ESEugene Sajine <euguess@gmail.com>
Date
Jan 7, 2010, 23:50 UTC
Message-ID
<76c5b8581001071550g31e9f5a3n15ebdb10a806ab2e@mail.gmail.com>
In-Reply-To
<76c5b8581001070925g21ac3136x2928f12dc43437e5@mail.gmail.com>
Show 10 quoted lines
>
> Yep. That's what i though it is. I.e. origin/branchname will point
> always to the last pushed commit only. Isn't it a bit strange that git
> fetch doesn't update origin/qa?
>
> Probably the problem is that whenever I'm pulling or pushing to remote
> repo i expect the last updated state of particular remote branch to be
> reflected in origin/branchname, but IMHO it is correct expectation...
>
> What do you think?
let me correct my self a little bit:
$ git pull origin branchname
and
$git fetch origin branchname
are both causing the output like this:
>From git://....
* branch      branchname    -> FETCH_HEAD
...
but "git fetch" says:
>From git://....
* branch      branchname    -> origin/branchname
Is this inconsistent behavior necessary by design?

Thanks, Eugene

Previous: Eugene SajineNext: Junio C Hamano
Message 5 of 14 in “origin/branchname and tracking branch pointing to different commits?”
  1. Eugene SajineJan 7, 2010
  2. Matthieu MoyJan 7, 2010
  3. Thomas RastJan 7, 2010
  4. Eugene SajineJan 7, 2010
  5. Eugene SajineJan 7, 2010
  6. Junio C HamanoJan 8, 2010
  7. Eugene SajineJun 8, 2010
  8. Junio C HamanoJun 8, 2010
  9. Eugene SajineJun 8, 2010
  10. Jeff KingJun 8, 2010
  11. Eugene SajineJun 28, 2010
  12. Junio C HamanoJun 29, 2010
  13. Eugene SajineJun 29, 2010
  14. Jeff KingJun 29, 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.