Wednesday, 7 May 2014

Git Basics

If you’re starting to track an existing project in Git, you need to go to the project’s directory and type

$ git init
 
This creates a new subdirectory named .git 
 
At this point, nothing in your project is tracked yet.  

 Cloning an Existing Repository

You clone a repository with git clone [url].

For example: 

$ git clone git://github.com/schacon/grit.git