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

Re: can anybody explain the following to a git noob?

From
Avery Pennarun <apenwarr@gmail.com>
Date
May 22, 2009, 05:02 UTC
Message-ID
<32541b130905212202q9aed54cn892171b7e654812f@mail.gmail.com>
In-Reply-To
<855e4dcf0905212046o3e1d6ec6l487829a0a411dcaf@mail.gmail.com>
On Thu, May 21, 2009 at 11:46 PM, Tim Uckun <timuckun@gmail.com> wrote:
Show 5 quoted lines
> A transcript...
>
> git init
> git add . > /dev/nul
> git commit -m 'initial import'
...okay...
> *********Try to rename a directory  WTF?: Git thinks any directory with a
> .git folder is empty and refuses to rename the directory.

Well, why do other folders contain .git directories? Are they *separate* git repositories? If so, git doesn't know what to do with them and leaves them alone. (Well, in fact it treats them as submodules.)

All your other weird problems seem to come from this, as far as I can tell. If not, it would be helpful if you could give *complete* reproduction steps for your problem.

Have fun,
Avery
Previous: Tim UckunNext: Tim Uckun
Message 2 of 16 in “can anybody explain the following to a git noob?”
  1. Tim UckunMay 22, 2009
  2. Avery PennarunMay 22, 2009
  3. Tim UckunMay 22, 2009
  4. Andreas EricssonMay 22, 2009
  5. Tim UckunMay 22, 2009
  6. Johannes SixtMay 22, 2009
  7. Tim UckunMay 22, 2009
  8. Julian PhillipsMay 22, 2009
  9. Tim UckunMay 23, 2009
  10. Andreas EricssonMay 22, 2009
  11. Daniel BarkalowMay 22, 2009
  12. Tim UckunMay 23, 2009
  13. Heiko VoigtMay 25, 2009
  14. Tim UckunMay 25, 2009
  15. Sitaram ChamartyMay 22, 2009
  16. Dan LoewenherzMay 22, 2009

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.