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
Andreas Färber <andreas.faerber@web.de>
Date
Aug 20, 2008, 20:40 UTC
Message-ID
<8585F10E-C33C-481E-B044-A7125F3316F2@web.de>
In-Reply-To
<1219263969579-736663.post@n2.nabble.com>
Hello,
Am 20.08.2008 um 22:26 schrieb ir0s:
Show 14 quoted lines
> $ 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?
You need to name the local branch, not the remote one:
$ git push origin mybranch
It should then push to remotebranch.

HTH, Andreas

Previous: Alex RiesenNext: Avery Pennarun
Message 3 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.