Download :- http://git-scm.com/downloads
Step1 :- sudo apt-get install git
Step2 :- git config --global user.name "YOUR NAME"
Step3 :- git config --global user.email "YOUR EMAIL ADDRESS"
Tell Git the email address that will be associated with your Git commits. The email you specify should be the same one you used to sign up for GitHub. To keep your email address hidden, see "Keeping your email address private".