[GTALUG] Git question
Myles Braithwaite
me at mylesbraithwaite.com
Wed Jul 22 20:56:32 UTC 2015
William Muriithi wrote:
> Afternoon
>
> I have a git repo called configurations. I want to add the directory /etc/ansible to the repo.
>
> Problem is when I clone the repo, I am not able to commit the ansible directory as the ansible root directory is outside the repo?
>
> Is there a way of getting the ansible directory into git without using a symlink?
No. The work tree has to existing in the same root directory and cannot
be outside the repository.
The only two way you could do it is with a symlink or making
/etc/ansible a git repo. etckeeper[1] might be checking out as while.
[1]: <https://joeyh.name/code/etckeeper/>
More information about the talk
mailing list