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

Re: noob user, want checkins to all be forced to LF terminated lines

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Jul 31, 2010, 20:38 UTC
Message-ID
<20100731203820.GA1773@burratino>
In-Reply-To
<i30g2s$dpt$1@dough.gmane.org>
Walter Bright wrote:
> Why would "git clone" even exist if copying the directory works?

As Ilari said, it works remotely. It’s even faster than just copying the directory (since it has to do less reading), and it only copies the repository, not the work tree or .git/config, which may or may not be what you want.

More importantly, the reason I mentioned it was this: if you clone to make your first backup, you are more likely (when appropriate) to use "git fetch" instead of rsync to update the backup afterwards. And for that operation, "git fetch" is much more efficient.

Anyway, feel free to ignore this advice. "cp -a" works fine already and is sometimes just the right thing to do.

Jonathan
Previous: Ilari LiusvaaraNext: Walter Bright
Message 12 of 16 in “noob user, want checkins to all be forced to LF terminated lines”
  1. Walter BrightJul 31, 2010
  2. Jonathan NiederJul 31, 2010
  3. Walter BrightJul 31, 2010
  4. Ilari LiusvaaraJul 31, 2010
  5. Walter BrightJul 31, 2010
  6. Ilari LiusvaaraJul 31, 2010
  7. Walter BrightJul 31, 2010
  8. David AguilarJul 31, 2010
  9. Jonathan NiederJul 31, 2010
  10. Walter BrightJul 31, 2010
  11. Ilari LiusvaaraJul 31, 2010
  12. Jonathan NiederJul 31, 2010
  13. Walter BrightJul 31, 2010
  14. Jay SoffianAug 3, 2010
  15. Will PalmerAug 4, 2010
  16. Miles BaderJul 31, 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.