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

git-rm'ing all dead files

From
PPazu <pazu@pazu.com.br>
Date
Jan 24, 2007, 16:17 UTC
Message-ID
<loom.20070124T171435-429@post.gmane.org>

I couldn't find an easy way to remove all "dead" files from the index, i.e., call git-rm on all files that are missing from the working copy.

Here's the scenario: I moved/added/removed a lot of files using a GUI tool; now I need to reflect those changes in git. Using git-commit -a isn't the best choice because there are local modifications I don't want to commit. I can use "git add ." to automatically stage all new files, but how to the same for removed files?

-- Pazu
Next: Johannes Schindelin
Message 1 of 5 in “git-rm'ing all dead files”
  1. PazuJan 24, 2007
  2. Johannes SchindelinJan 24, 2007
  3. PazuJan 24, 2007
  4. Johannes SchindelinJan 24, 2007
  5. PazuJan 24, 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.