If you want to connect a folder into another folder(like the shortcut in windows), you need to link it via LN command.
1 2 3 4 5 | ln -s /folder/to/link newFolderName |
for example, you can link the git folder into localhost folder to test changes locally before pushing to live.