Git Interview Questions

I really like working with Git and but I really dont like going on interviews and getting asked questions on it.. As developers we really dont have to know EVERYTHING but hard but we should know how to find the anwsers.

How do I clone a local Git Repository?

This worked for me:

git clone file:////<host>/<share>/<path>

For example, if your main machine has the IP 192.168.10.51 and the computer name main, and it has a share named code which itself is a git repository, the both of the following commands should work equally:

git clone file:////main/code
git clone file:////192.168.10.51/code

How do you share a local Git repository?

 git daemon --export-all --base-path=$(pwd)

If you have any questions or comments please email me at john@johnathanmarksmith.com