Information Technology Reference
In-Depth Information
haven't done it so far, please run the following two commands, replacing John Doe
and john.doe@example.net with your personal information:
$ git config --global user.name "John Doe"
$ git config --global user.email john.doe@example.net
When you are ready to commit, initialize a new repository:
$ cd git-recipes
$ git init 03-01
$ cd 03-01
Now the directory 03-01 contains the git repository. To verify, run the command:
$ ls -la
It will print three items:
.
..
.git
As you will guess, the repository is empty. That means the database contains no re-
visions. We can verify that with the $ git log and the $ git status com-
mands. First, print the history with:
$ git log
The answer will be:
fatal: bad default revision 'HEAD'
Now, check the status with:
$ git status
The information printed by git status will be:
Search WWH ::




Custom Search