Information Technology Reference
In-Depth Information
# Guest OS (Ubuntu 12.04)
$ cd 03-01.git
$ git log --oneline
The $ git log command will print the three revisions that we created in Recipe
3-1.
The repository /vagrant/home/03-01.git on the virtual system is available
under the following URL:
ssh://vagrant@127.0.0.1:2222/home/vagrant/03-01.git
Working with a repository hosted on the virtual machine
Right now you are working as one of the developers. Let's assume that his name is
Paul. Clone the repository from the virtual system onto the local Peter's drive:
# Host OS (e.g., Windows, Linux, OS X)
$ cd git-recipes
$ mkdir 11-04-pauls-machine
$ cd 11-04-pauls-machine
$ git clone ssh://vagrant@127.0.0.1:2222/home/vagrant/
03-01.git
Use the credentials:
username: vagrant
password: vagrant
Now Paul commits into his local repository:
# the commands issued in 11-04-pauls-machine/ directory
$ cd 03-01
$ echo one > one.txt
$ git add -A
$ git commit -m "One"
Finally Paul pushes his work to the remote repository stored on virtual system:
Search WWH ::




Custom Search