Read this first, especially chapter 2: Getting Started - git basics
First, download and install the latest version of git.
Then, set your name and email address. These will be attached to your commits. Use the following commands:
git config --global user.name "Your Name Here"
git config --global user.email "[email protected]"