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

Re: What's cooking in git.git (Jan 2009, #07; Wed, 28)

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jan 30, 2009, 13:18 UTC
Message-ID
<alpine.DEB.1.00.0901301415260.3586@pacific.mpi-cbg.de>
In-Reply-To
<20090130045131.GB18655@coredump.intra.peff.net>
Hi,
On Thu, 29 Jan 2009, Jeff King wrote:
Show 17 quoted lines
> On Thu, Jan 29, 2009 at 01:20:20PM +0100, Sverre Rabbelier wrote:
> 
> > > It wouldn't help the case of "somebody
> > > else pushed some content that you want to pull", but like you said, I
> > > think the primary workflow is that you immediately push after cloning
> > > the empty repo.
> > 
> > Also, the only way to support the "somebody else pushed already"
> > workflow would be to assume the user wants to name the branch
> > 'master', which might not be the case at all.
> 
> You could make a guess that they will use "master", and if you are
> wrong, it behaves as now. But if you are right, "git pull" pulls down
> master automatically.
> 
> But that is getting a little confusing. So let's push this "git push
> --track" idea to completion and see how people like it.
How about installing
	[branch "master"]
		remote = origin
		merge = refs/heads/master

by default? It is a safe bet that this will be the case for 99% of all users that want to clone an empty repository (especially if they are putting their public repositories on something like repo.or.cz, where you cannot change the default branch from "master" to something else).

And if somebody wants to track another branch, tough, she has to call this:

	$ git checkout -t origin/blablabla

Ciao, Dscho

Previous: Jeff KingNext: Jeff King
Message 13 of 30 in “What's cooking in git.git (Jan 2009, #07; Wed, 28)”
  1. Junio C HamanoJan 29, 2009
  2. Jeff KingJan 29, 2009
  3. Jeff KingJan 29, 2009
  4. Jeff KingJan 29, 2009
  5. Junio C HamanoJan 29, 2009
  6. Sverre RabbelierJan 29, 2009
  7. Jeff KingJan 29, 2009
  8. Pieter de BieJan 29, 2009
  9. Sverre RabbelierJan 29, 2009
  10. Jeff KingJan 29, 2009
  11. Sverre RabbelierJan 29, 2009
  12. Jeff KingJan 30, 2009
  13. Johannes SchindelinJan 30, 2009
  14. Jeff KingJan 30, 2009
  15. Junio C HamanoFeb 1, 2009
  16. Junio C HamanoFeb 12, 2009
  17. Sverre RabbelierFeb 12, 2009
  18. Johannes SchindelinFeb 12, 2009
  19. Junio C HamanoFeb 12, 2009
  20. Johannes SchindelinFeb 12, 2009
  21. Jeff KingFeb 12, 2009
  22. Jeff KingJan 29, 2009
  23. Nico -telmich- SchotteliusJan 29, 2009
  24. Jeff KingJan 30, 2009
  25. Charles BaileyJan 29, 2009
  26. Junio C HamanoJan 29, 2009
  27. Charles BaileyJan 29, 2009
  28. Charles BaileyJan 30, 2009
  29. Kirill SmelkovFeb 1, 2009
  30. Junio C HamanoFeb 1, 2009

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.