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

Re: Recursive remove

From
Junio C Hamano <junkio@cox.net>
Date
Jan 13, 2006, 17:37 UTC
Message-ID
<7virso9ggd.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20060113132119.GB23655@ebar091.ebar.dtu.dk>
"Peter Eriksen" <s022018@student.dtu.dk> writes:
Show 8 quoted lines
> A way to recursively remove a directory /Some/Dir/ is a follows:
>
>    git ls-files -z Some/Dir >rmfiles
>    git update-index -z --force-remove --stdin <rmfiles
>    git commit -a -m "Remove directory Some/Dir"
>    rm -rf Some/Dir
>
> What is a better way to do it?
	$ rm -fr Some/Dir; git commit -a -m 'Remove'
perhaps?
Previous: seanNext: sean
Message 3 of 5 in “Recursive remove”
  1. Peter EriksenJan 13, 2006
  2. seanJan 13, 2006
  3. Junio C HamanoJan 13, 2006
  4. seanJan 13, 2006
  5. Junio C HamanoJan 13, 2006

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.