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

Re: [RFC] Submodules in GIT

From
Jakub Narebski <jnareb@gmail.com>
Date
Dec 3, 2006, 12:31 UTC
Message-ID
<200612031331.45410.jnareb@gmail.com>
In-Reply-To
<200612031322.54748.robin.rosenberg.lists@dewire.com>
Robin Rosenberg wrote:
Show 8 quoted lines
> söndag 03 december 2006 02:31 skrev Jakub Narebski:
>
>> Actually, rm -rf * is not needed for "git reset --hard" or
>> "git checkout -f" to succeed.
> 
> True, but git reset --hard isn't always enough and rm -rf * is the good ol' 
> way of resetting things. Typically this comes from make being upset (or too 
> content) with something.

$ git clean -d -x -q $ git reset --hard

(or vice versa) then.

Besides, "rm -rf *" should not remove hidden files and hidden directories, including .git directory. And you should take great care with "rm -rf .*" if it doesn't follow '..'

-- 
Jakub Narebski
Previous: Robin RosenbergNext: Jakub Narebski
Message 9 of 10 in “[RFC] Submodules in GIT”
  1. Martin WaitzNov 20, 2006
  2. Jakub NarebskiNov 20, 2006
  3. Shawn PearceNov 21, 2006
  4. Petr BaudisNov 22, 2006
  5. Jakub NarebskiDec 2, 2006
  6. Robin RosenbergDec 3, 2006
  7. Jakub NarebskiDec 3, 2006
  8. Robin RosenbergDec 3, 2006
  9. Jakub NarebskiDec 3, 2006
  10. Jakub NarebskiDec 3, 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.