git: How do you add an external directory to the repository?
Posted
by Sly
on Stack Overflow
See other posts from Stack Overflow
or by Sly
Published on 2010-03-05T00:30:59Z
Indexed on
2010/03/08
3:30 UTC
Read the original article
Hit count: 390
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
© Stack Overflow or respective owner