Information Technology Reference
In-Depth Information
$ git status -s
returns the empty output and it means that there are no pending changes in the working
directory. In other words the repository is clean. Let's check the log with $ git log .
The output will be similar to:
commit de3680b0a770dd46ede81f46cba0ae32f9e4687c
Author: Włodzimierz Gajda <gajdaw@gajdaw.pl>
Date:
Thu May 2 12:50:19 2013 +0200
First commit [Agatha Christie]
The current state of the repository is shown in Figure 3-2 .
Figure 3-2 . The repository from Recipe 3-1 after the first revision
Let's create the second revision. Follow these steps:
1. Create the file john-grisham.txt
$ vi john-grisham.txt
2. Type the contents of the file:
Novels
1989 | A Time to Kill
1991 | The Firm
1992 | The Pelican Brief
3. Save the file and close the editor.
4. Check the status of the repository:
$ git status -s
The output:
 
 
Search WWH ::




Custom Search