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

basics... when reading docs doesn't help

From
GLGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Date
Mar 29, 2007, 20:50 UTC
Message-ID
<Pine.LNX.4.60.0703292225100.10351@poirot.grange>
Hi all

Since it's a basic question, I couldn't search archives - cannot come up with good enough search keywords, but would be greatful for pointers.

I've been using CVS for a few years now, briefly tried a couple of other CMS, but only briefly. Now trying to get to grisps with the git... And just cannot understand how everybody does it.

The package I'm trying to handle with git is the Linux kernel.
1. Ok, I clone a repository from Linus or some else.
2. as my internet connection is not very fast, although I do have 
flatrate, I prefer keeping a virgin cloned copy somewhere, where I only do 
pulls from the original clone source, no edits.
3. then I do git clone <path to original cloned tree> <new tree>
4. create a new branch in <new tree>
5. go hack / compile in the <new tree>
6. then I decide to build practically the same kernel for another machine, 
i.e., another configuration, maybe a couple of local changes...

Now, that's the first question: suppose I want to build kernels for about 4 machines. Do you __really__ clone the whole tree 4 times??? And then I want try new versions for the same 4 machines without deleting the first ones - 4 more clones??? Now, my copy of Linus' tree was ATM 1.5GiB big... Slowly it's getting scary. Ok, if I build all that stuff on one filesystem, I can use --local to use hard links, right? But is it REALLY what everybody does?

The next thing is - I don't need all versions since 2.6.x in every copy I use to compile / test / hack - in most cases I only compare to the basis version, from which I branched. I might pull further updates into this repository, merge, etc., but I don't need all PAST commits! Can I clone starting from version x?

Ok, enough for starters:-)

Thanks Guennadi --- Guennadi Liakhovetski

Next: J. Bruce Fields
Message 1 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.