init [Dec. 27, 2011, 1:21 p.m.]
In this task we will create a new Git repository using init.
The init command is short for initialize and creates a new repository in the current working directory. Lets give it a try, change directories to a location where you want to work. You can use any existing directory or create an empty one if you wish.
cd /home/username/project git init Initialized empty Git repository in /home/username/project/.git/
The /.git/ directory is a hidden sub-directory where Git stores information about your project such as iterations, remote locations, etc. The structure of the /.git/ directory looks like this:
branches config description HEAD hooks info objects refs
We will find out more about this directory as we explore Git further.