The first thing you need to do is to download Git, click here. You will be redirected to the Git website where you need to select the Git version based on your operating system you are using.
when you've successfully started the installer, you should see the Git Setup wizard screen. Follow the Next and Finish prompts to complete the installation. The default options are pretty sensible for most users.
Git uses a username to associate commits with an identity. The Git username is not the same as your GitHub username.
Open Command Prompt
git config --global user.name "yourname"
Don't close the Command Prompt yet.
GitHub uses the email address set in your local Git configuration to associate commits pushed from the command line with your GitHub account.
The following instruction does the association b/w your local Git and Github account:
git config --global user.email "firstname.lastname@example.org"
git config --global user.name
git config --global user.email
You saw how to download and install git for your type of operating system.
Then you set up
git to communicate between your local machine and your Github account.