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

Re: Local branch ahead of tracked remote branch but git push claims everything up-to-date

From
ir0s <imirene@gmail.com>
Date
Aug 21, 2008, 16:53 UTC
Message-ID
<1219337620037-740662.post@n2.nabble.com>
In-Reply-To
<g8k4or$tf$1@ger.gmane.org>
Hi Michael,
Here are my results:

$ git ls-remote origin 138ea08f9680a8def085b793c9cee70eed0e1f3b HEAD 138ea08f9680a8def085b793c9cee70eed0e1f3b refs/heads/master 75290a081feebcc4265825d017d9af07c7646951 refs/heads/remotebranch f11c723119cd9938e91e1ed5328ef143fb477f15 refs/heads/mybranch f11c723119cd9938e91e1ed5328ef143fb477f15 refs/heads/groups ... There are a few more

Is it the case that mybranch somehow became a remote branch?

Here are the results for this one: $ git log --pretty=oneline mybranch...origin/remotebranch f11c723119cd9938e91e1ed5328ef143fb477f15 Merge branch 'remotebranch' of gitosis@sorry.must.obfuscate.url.com:my-repo into mybranch eb41bd8f4f43d483b4a58bc98386c468bb69173c Ticket #1032 5e76a7c9bce92519b308c031357794904bf0f4a6 Ticket #1038 cu5ceaf670c83f77c1b48e8d31a23456b744f1af0f Ticket #1044

Thank you! -Irene

Michael J Gruber wrote:
Show 33 quoted lines
> 
> ir0s venit, vidit, dixit 21.08.2008 17:35:
>> Sorry if you get this twice, oddly my first attempt to send this bounced.
>> Thank you for all the good advice however, none of it seemed to resolve
>> my
>> issue.
>> 
>> Attempting to call:
>> $git push origin mybranch
>> 
>> Results in the same message: Everything up to date =/
>> I also tried to call $git fetch origin just in case, and doing a pull
>> doesn't return anything (which makes sense, no one pushed anything to the
>> branch -- although I seem to be the only one with this issue.)
>> 
>> Could my branch have somehow diverged from the origin remotebranch?
>> 
>> -- Irene
> 
> What do the following report:
> 
> git ls-remote origin
> git ls-remote .
> git log --pretty=oneline mybranch...origin/remotebranch
> 
> Michael
> 
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
> 
-- 
View this message in context: http://n2.nabble.com/Local-branch-ahead-of-tracked-remote-branch-but-git-push-claims-everything-up-to-date-tp736663p740662.html
Sent from the git mailing list archive at Nabble.com.
Previous: Michael J GruberNext: Michael J Gruber
Message 11 of 13 in “Local branch ahead of tracked remote branch but git push claims everything up-to-date”
  1. ir0sAug 20, 2008
  2. Alex RiesenAug 20, 2008
  3. Andreas FärberAug 20, 2008
  4. Avery PennarunAug 20, 2008
  5. Junio C HamanoAug 20, 2008
  6. Avery PennarunAug 20, 2008
  7. Daniel BarkalowAug 20, 2008
  8. Junio C HamanoAug 20, 2008
  9. ir0sAug 21, 2008
  10. Michael J GruberAug 21, 2008
  11. ir0sAug 21, 2008
  12. Michael J GruberAug 22, 2008
  13. ir0sAug 21, 2008

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.