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

Re: [RFC PATCH] status: reword message for a missing upstream branch

From
Harald Nordgren <haraldnordgren@gmail.com>
Date
Oct 9, 2026, 18:47 UTC
Message-ID
<CAHwyqnUgWurC5Q9FjWv11YgMkw0i-j=h=Tvg2oi+bphbDTw9kg@mail.gmail.com>
In-Reply-To
<20261009134004.188952-1-gitter.spiros@gmail.com>
Show 12 quoted lines
> Clone an empty repository, make a commit and run "git status":
>
>     $ git init --bare empty.git
>     $ git clone empty.git work && cd work
>     $ git commit --allow-empty -m initial
>     $ git status
>     On branch master
>     Your branch is based on 'origin/master', but the upstream is gone.
>       (use "git branch --unset-upstream" to fixup)
>
> The upstream is not gone, it was never there: the remote is empty,
> so origin/master has not been created yet.
The idea makes sense to me!
Harald
Previous: Elia Pinto
Message 2 of 2 in “status: reword message for a missing upstream branch”
  1. status: reword message for a missing upstream branchElia Pinto, Oct 9, 2026
  2. Harald NordgrenOct 9, 2026

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.