Information Technology Reference
In-Depth Information
How strange, the repository is clean! That's because git doesn't track empty direct-
ories.
Hint The generally accepted method of circumventing git's restriction forbidding
committing empty directories is to create an empty file called .gitkeep .
Now prepare the revision containing a Polish song “Bajka iskierki”:
1. Create the bajka-iskierki.txt file:
$ vi PL/bajka-iskierki.txt
2. Type the contents of the file:
Na Wojtusia z popielnika
Iskiereczka mruga....
3. Save the file and close the editor.
4. Check the status of the repository:
$ git status -s
The repository is dirty.
5. Save the current state of the working directory as a new revision:
$ git snapshot [PL] Bajka iskierki
6. Check the status of the repository with:
$ git status -s
The repository is clean.
7. Check the log of the repository with:
$ git l
Search WWH ::




Custom Search