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

Re: git fetch workflow improvements

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Feb 9, 2008, 13:22 UTC
Message-ID
<alpine.LSU.1.00.0802091321110.11591@racer.site>
In-Reply-To
<alpine.LSU.1.00.0802091318080.11591@racer.site>
Hi,
On Sat, 9 Feb 2008, Johannes Schindelin wrote:
Show 10 quoted lines
> On Sat, 9 Feb 2008, Reece Dunn wrote:
> 
> >     1.  When running `git fetch` on a bare repository that does not 
> > have a remote called 'origin', fetch fails. I would like this to pick 
> > up the first remote entry in the config file.
> 
> I am opposed to that.  If you want a default remote, then set the remote 
> "origin".  That is well established semantics, and you would only 
> confuse yourself if all of a sudden you fetched from a remote that you 
> erroneously added at some stage.

Oh and I completely forgot: if you have a bare repository, chances are that it should fetch in mirror mode. You'd probably DWIM that, too, which would make semantics even worse.

Ciao, Dscho

Previous: Johannes SchindelinNext: Mike Hommey
Message 3 of 7 in “git fetch workflow improvements”
  1. Reece DunnFeb 9, 2008
  2. Johannes SchindelinFeb 9, 2008
  3. Johannes SchindelinFeb 9, 2008
  4. Mike HommeyFeb 9, 2008
  5. Johannes SchindelinFeb 9, 2008
  6. Mike HommeyFeb 9, 2008
  7. Reece DunnFeb 9, 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.