Information Technology Reference
In-Depth Information
The virtual machine is ready. You can close the ssh session:
# Guest OS (Ubuntu 12.04)
$ exit
Cloning repositories hosted with git daemon
Now git daemon is running and everybody can clone arbitrary repositories stored in the
git-recipes directory on your machine.
To clone a non-bare 03-06 repository run:
# Host OS (e.g., Windows, Linux, OS X)
$ git clone git://localhost/git/03-06
In almost the same manner you can clone a bare repository:
# Host OS (e.g., Windows, Linux, OS X)
$ git clone git://localhost/git/03-01.git
or even a .git directory of a non-bare repository:
# Host OS (e.g., Windows, Linux, OS X)
$ git clone git://localhost/git/03-05/.git
If your machine is available as 192.168.10.225, everyone on the network can clone
using:
$ git clone git://192.168.10.225/git/03-05
How It Works
We want to make all the repositories stored in the git-recipes directory on the host sys-
tem available on the guest system. This is achieved with the con-
fig.vm.synced_folder configuration entry of Vagrantfile . This was
already discussed in Recipe 11-2. The second configuration option:
config.vm.network :forwarded_port, guest: 9418, host: 9418
Search WWH ::




Custom Search