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

branch ahead in commits but push claims all up to date

From
Irene Ros <imirene@gmail.com>
Date
Mar 24, 2009, 15:22 UTC
Message-ID
<7001b7a00903240822w70a57349xcc66a02cef62dc70@mail.gmail.com>
In-Reply-To
<7001b7a00903240821v2155d234x6a10c80a3e987acb@mail.gmail.com>
Hi all,

I've been using git for some time now and haven't run into this issue before, perhaps someone else here has:

I have a branch that is ahead of its origin by a few commits:

$ git status # On branch myBranch # Your branch is ahead of 'origin/myBranch' by 10 commits.

Oddly, when I try to do a push, I get a message saying that everything is up to date: $ git push origin myBranch Everything up-to-date

Looking at the log for origin/myBranch I can tell those commits are missing, but I can't push them up, even with a --force flag. Any ideas? Here's the config entry for this branch:

[branch "myBranch"]
    remote = origin
    merge = refs/heads/myBranch

There's also nothing to pull from this branch, I'm the only one working on it. I use many other branches in this particular repo, and its just this one that's giving me trouble.

Thanks so much! -- Irene

Next: Junio C Hamano
Message 1 of 13 in “branch ahead in commits but push claims all up to date”
  1. Irene RosMar 24, 2009
  2. Junio C HamanoMar 24, 2009
  3. John TapsellMar 24, 2009
  4. Daniel BarkalowMar 24, 2009
  5. John TapsellMar 25, 2009
  6. Daniel BarkalowMar 25, 2009
  7. Irene RosMar 25, 2009
  8. John TapsellMar 25, 2009
  9. Daniel BarkalowMar 25, 2009
  10. Irene RosMar 25, 2009
  11. Santi BéjarMar 25, 2009
  12. John TapsellMar 26, 2009
  13. Björn SteinbrinkMar 26, 2009

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.