- Go to https://github.com.
- On the home page, click on ‘Sign Up’.
- Choose a unique ‘username’ for yourself. Be careful to choose a username, as this cannot be changed in future. After that choose a free plan and follow the next instructions.
After these steps your account will be created and can be visited at https://github.com/username Congratulations!!!!
- Open GitBash.
- Open Terminal (Ctrl + Alt + T).
-
Enter the following command to check if git is properly installed or not:
git --version
The version of Git that is installed should appear. If not, then install again. -
Enter the following to configure git:
git config --global user.name "JohnDoe"
git config --global user.email "[email protected]"
Instead of "JohnDoe" and "[email protected]", enter your "username" and the "email" respectively that you used to create the GitHub account. In the above example, the person's username on GitHub must be "JohnDoe". -
Confirm that you have set the Git username and email correctly:
git config --global user.name
git config --global user.email
It should display the information you entered above.
Your git setup is done :)