Git Setup

Git Bash Installation

Download and Installation Gitbash on your local desktop, in case if you dont have one.

Verify weather gitbash is installed or not by running the below command in Cmd.exe or Linux terminal or mac shell.

sudo apt install git -y
git --version

Git Configuration with Username and Email

To start using Git from your computer, you must enter your credentials to identify yourself as the author of your work. The username and email address should match the ones you use in GitLab.

  1. In your shell, add your user name:

    git config --global user.name "your_username"
  2. Add your email address:

    git config --global user.email "[email protected]"
  3. To check the configuration, run:

    git config --global --list

    The --global option tells Git to always use this information for anything you do on your system. If you omit --global or use --local, the configuration applies only to the current repository.

Last updated