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

Re: Fwd: Re: git checkout -f branch doesn't remove extra files

From
DJDave Jones <davej@redhat.com>
Date
Aug 13, 2005, 05:27 UTC
Message-ID
<20050813052731.GC11456@redhat.com>
In-Reply-To
<Pine.LNX.4.58.0508122151120.19049@g5.osdl.org>
On Fri, Aug 12, 2005 at 10:05:11PM -0700, Linus Torvalds wrote:
 > HOWEVER, if all you want to do is just a tar-file, then there's a better 
 > solution. It's called
 > 
 > 	snap=git-snapshot-$(date +"%Y%m%d")
 > 	git-tar-tree HEAD $snap | gzip -9 > $snap.tar.gz
 > 
 > which is even easier, and a hell of a lot more efficient.

Nice. That takes noticably less time to create the sparse/git snapshots compared to my crappy old script. And its now less than half the size. I'm sold.

 > Git actually has a _lot_ of nifty tools. I didn't realize that people 
 > didn't know about such basic stuff as "git-tar-tree" and "git-ls-files". 

Maybe its because things are moving so fast :) Or maybe I just wasn't paying attention on that day. (I even read the git changes via RSS, so I should have no excuse).

		Dave
Previous: Linus TorvaldsNext: Linus Torvalds
Message 3 of 8 in “Fwd: Re: git checkout -f branch doesn't remove extra files”
  1. Dave JonesAug 13, 2005
  2. Linus TorvaldsAug 13, 2005
  3. Dave JonesAug 13, 2005
  4. Linus TorvaldsAug 13, 2005
  5. Linus TorvaldsAug 13, 2005
  6. Petr BaudisAug 13, 2005
  7. Sergey VlasovAug 13, 2005
  8. Petr BaudisAug 13, 2005

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.