Information Technology Reference
In-Depth Information
The repository is clean.
7. Check the log of the repository with $ git l
The output will contain one revision:
7cfb Sing a song of sixpence
The repository now looks like Figure 3-4 .
Figure 3-4 . The “Songs for children” project with first revision
Create the second revision containing the lyrics of “Baa, baa, black sheep” song.
1. Create the baa-baa-black-sheep.txt file:
$ vi baa-baa-black-sheep.txt
2. Type the contents of the file:
Baa, baa, black sheep,
Have you any wool?
Yes, sir, yes, sir,
Three bags full;
...
3. Save the file and close the editor.
4. Check the status of the repository with $ git status -s
The repository is dirty.
5. Save the current state of the working directory as a new revision:
$ git snapshot Baa, baa black sheep
6. Check the status of the repository with $ git status -s
 
 
Search WWH ::




Custom Search