
22 Jul
2015
22 Jul
'15
1:56 p.m.
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/>