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

Re: more useful set-upstream

From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Date
Sep 21, 2010, 09:30 UTC
Message-ID
<vpqfwx3phou.fsf@bauges.imag.fr>
In-Reply-To
<AANLkTi=c51u=pQ3TLt3YE54mbwy8AqRb2rcsatEVo2U5@mail.gmail.com>
Ramana Kumar <ramana.kumar@gmail.com> writes:
> I don't understand why all my branches haven't automatically had the right
> upstream set anyway - am I missing some configuration of pull and
> push?
If you keep it simple, they should:
* git clone wherever => checks out the default branch, and sets the
  upstream for it.
* git checkout foo => if foo doesn't exist, and <remote>/foo exists,
  foo is created and upstream is set to <remote>/foo (that's rather
  recent)

But we could probably have a better way to set the upstream after the fact when the initialisation magic didn't do its job.

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Previous: Ramana Kumar
Message 2 of 2 in “more useful set-upstream”
  1. Ramana KumarSep 21, 2010
  2. Matthieu MoySep 21, 2010

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.