To install a fresh copy of Git or to upgrade to the latest version, please follow the instructions outlined in: Installing Git
Before you start using Git you need set your username and e-mail with the commands:
git config --global user.name "FIRST_NAME LAST_NAME"
git config --global user.email "[email protected]"