How do you add an external directory to repository?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]