Information Technology Reference
In-Depth Information
Solution
Create a new repository:
$ cd git-recipes
$ git init 04-03
$ cd 04-03
$ git simple-commit modified
Right now the repository is clean and the working directory contains one
file— modified.txt .
Now, follow this procedure:
1. Modify the modified.txt file with
$ echo Yet another text > modified.txt
2. Check the status of the repository
$ git status
The output is the same as in Recipe 4-2:
# On branch master
# Changes not staged for commit:
# (use "git add <file>..." to update what will
be committed)
# (use "git checkout -- <file>..." to discard
changes in working directory)
#
#
modified:
modified.txt
#
no changes added to commit (use "git add" and/or
"git commit -a")
3. Check the simplified form of the status. The output of
Search WWH ::




Custom Search