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

Re: basics... when reading docs doesn't help

From
Linus Torvalds <torvalds@linux-foundation.org>
Date
Mar 30, 2007, 20:06 UTC
Message-ID
<Pine.LNX.4.64.0703301256230.6730@woody.linux-foundation.org>
In-Reply-To
<Pine.LNX.4.60.0703302135590.10784@poirot.grange>
On Fri, 30 Mar 2007, Guennadi Liakhovetski wrote:
Show 7 quoted lines
> 
> And, so, it's a pity I cloned Paul's tree yesterday with the "old" git. 
> And from your answer above it seems like some features of the "new" git 
> will not be available with this tree, like equally named local and remote 
> branches, etc. There isn't a way to convert such a "old style" tree to the 
> "new style", is there? Not a big deal, will re-clone at some point, maybe 
> when we get local git mirrors...
There's a conversion script to help you convert in place if you care.
Look at the git list for an email that looks something like this:
	Date: Wed, 14 Mar 2007 02:16:12 -0400
	From: Shawn O. Pearce <spearce@spearce.org>
	To: git@vger.kernel.org
	Subject: Upgrade to 1.5.0 utility
	Yesterday on #git DrNick wanted a script to update a pre-1.5.0
	Git repository to be like a 1.5.0 (and later) style repository.
	...

which has a script in it to do this (it uses another script that is already in git/contrib/ that just moves all the ".git/remotes" entries as-is from the remotes files into the .git/config file)

I haven't tested it myself, so caveat emptor. But the config file format really isn't *that* complicated - do the conversion with the script, and then just go back and look at .git/config and verify that it looks sane, or edit it to match your taste.

		Linus
Previous: Guennadi LiakhovetskiNext: Theodore Tso
Message 10 of 18 in “basics... when reading docs doesn't help”
  1. Guennadi LiakhovetskiMar 29, 2007
  2. J. Bruce FieldsMar 29, 2007
  3. Junio C HamanoMar 29, 2007
  4. J. Bruce FieldsMar 29, 2007
  5. Guennadi LiakhovetskiMar 29, 2007
  6. Linus TorvaldsMar 29, 2007
  7. Guennadi LiakhovetskiMar 30, 2007
  8. Linus TorvaldsMar 30, 2007
  9. Guennadi LiakhovetskiMar 30, 2007
  10. Linus TorvaldsMar 30, 2007
  11. Theodore TsoMar 30, 2007
  12. Junio C HamanoMar 30, 2007
  13. Guennadi LiakhovetskiMar 30, 2007
  14. Theodore TsoMar 30, 2007
  15. J. Bruce FieldsMar 30, 2007
  16. Andreas HerrmannMar 30, 2007
  17. Guennadi LiakhovetskiMar 30, 2007
  18. Matthieu MoyMar 29, 2007

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.