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
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…