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

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

From
ir0s <imirene@gmail.com>
Date
Aug 20, 2008, 20:26 UTC
Message-ID
<1219263969579-736663.post@n2.nabble.com>
Hello,

I've used git for quite some time now but haven't run into this kind of issue before.

I created a new branch from a remote branch that me and another developer share: $ git checkout --track -b mybranch origin/remotebranch

I make some changes, commit them but then switch to another branch and do some work there.

I return to checkout my new branch to do some work: $ git checkout mybranch Switched to branch "mybranch " Your branch is ahead of the tracked remote branch 'origin/remotebranch' by 4 commits. mybranch

Accurately, it has 4 commits that I haven't pushed yet. I try to push them but I get the following: $ git push origin remotebranch Everything up-to-date

Any ideas? This is really strange. Clearly I have missing commits, my teammate doesn't see those 4 when he pulls and yet I can't add them.

>From my git config:
[branch "mybranch"]
	remote = origin
	merge = refs/heads/remotebranch
-- 
View this message in context: http://n2.nabble.com/Local-branch-ahead-of-tracked-remote-branch-but-git-push-claims-everything-up-to-date-tp736663p736663.html
Sent from the git mailing list archive at Nabble.com.
Next: Alex Riesen
Message 1 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.