Show List

Setting up Git on the computer

Setting up Git on your computer involves downloading and installing the Git software, and then configuring it with your user information. Here are the steps to set up Git on your computer:

Git Installation

Open command line and run git --version command to see whether git is already installed.
C:\Users\mail2>git --version
git version 2.29.2.windows.2
If Git is already installed, you should see version number as above. If git command is not recognized, head over to install git from official website. There instructions are here: https://git-scm.com/book/en/v2/Getting-Started-Installing-Git

Choose the appropriate version for your operating system and follow the installation instructions.

Git Configuration

Git configuration is required to identify the user for the git operations such as to commit the changes to the repository. User name and email address on the git configuration should match with the user credentials for the git repo.

Command to add user name:
git config --global user.name "your_username"
Command to add email address:
git config --global user.email "your_email_address@example.com"
To check if the user name and email is already configured:
git config --global --list



    Leave a Comment


  • captcha text