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

Re: Git: "No you can't handle my root!" (?)

From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Date
Oct 12, 2009, 19:02 UTC
Message-ID
<vpqfx9oxwpb.fsf@bauges.imag.fr>
In-Reply-To
<20091012012826.7sffggwmm8sk0cc8@webmail.demarque.qc.ca>
sylvain@demarque.qc.ca writes:
> localhost / # cd etc
> localhost etc # git add X11/xorg.conf
> fatal: pathspec 'etc/X11/xorg.conf' did not match any files

cd .. git add etc/X11/xorg.conf

works. I don't know why the other doesn't (just tested adding from an untracked directory in another project, it does work).

If you want to version a large directory like /, I'd advise putting "*" in /.gitignore to make sure Git never tries to traverse the whole filesystem.

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Previous: Markus HeidelbergNext: Daniele Segato
Message 11 of 18 in “Git: "No you can't handle my root!" (?)”
  1. sylvain@demarque.qc.caOct 12, 2009
  2. sylvain@demarque.qc.caOct 12, 2009
  3. Steven NoonanOct 12, 2009
  4. Alex RiesenOct 12, 2009
  5. sylvain@demarque.qc.caOct 12, 2009
  6. Alex RiesenOct 12, 2009
  7. Jeff KingOct 12, 2009
  8. sylvain@demarque.qc.caOct 12, 2009
  9. Tony FinchOct 13, 2009
  10. Markus HeidelbergOct 12, 2009
  11. Matthieu MoyOct 12, 2009
  12. Daniele SegatoOct 12, 2009
  13. Avery PennarunOct 12, 2009
  14. sylvain@demarque.qc.caOct 12, 2009
  15. Jeff KingOct 13, 2009
  16. Daniele SegatoOct 13, 2009
  17. Jeff KingOct 13, 2009
  18. Wesley J. LandakerOct 15, 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.