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

How do you add an external directory to repository?

From
Sslipstream180 <ivan.barrios@gmail.com>
Date
Mar 7, 2010, 20:03 UTC
Message-ID
<1267992229319-4691734.post@n2.nabble.com>
I want to add an external directory to an existing repository.
External Dir: /home/some/directory
Working Dir: /htdocs/.git
If I attempt the following command from the /htdocs dir:
git add /home/some/directory
I get an error: fatal: '/home/some/directory' is outside repository

I understand that I can add a symbolic link to /home/some/directory, but I believe that only track the link. How do I track all files under the directory as well?

Thanks in advance!
-- 
View this message in context: http://n2.nabble.com/How-do-you-add-an-external-directory-to-repository-tp4691734p4691734.html
Sent from the git mailing list archive at Nabble.com.
Next: Fredrik Gustafsson
Message 1 of 3 in “How do you add an external directory to repository?”
  1. slipstream180Mar 7, 2010
  2. Fredrik GustafssonMar 7, 2010
  3. Nicolas SebrechtMar 7, 2010

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.