Wednesday, August 12, 2015

Make your lan PC as Git Server

You need to run the following command


Command to start git server (on lan pc)
sudo git daemon --base-path="<path_to_[dot]git_dir>" --listen="<local_lan_ip>" --port="<port>" --export-all


Command to clone from local lan git server
git clone git://<local_lan_ip>:<port>/  <DIR_NAME>


No comments:

Post a Comment