Setup git development environment -First time git setup

This tutorial (Setup git development environment), will help you to setup git environment. Before using git, you have to follow some basic configuration of git.

Git provide both GUI and Bash  integration for windows. As we know GUI is user-friendly but almost all developers are using git bash i.e. command line based. Follow the given steps below:

Step 1 : Download git installer for windows.

Step 2 : After successfully download the installer, now start the installer and you should have to see the screen like this.

git installation wizard

Now, Click on Next> and follow all the steps given below.

choose deafult behaviour of git pull

git instal

git installation in progres

Finally, the installation is complete. Enjoy, Your windows has git.

Configure your identity

Set your username and user email. So that git use this detail in commits.

$ git config --global user.name "Coding query"
$ git config --global user.email "[email protected]"

Again, you need to do this only once if you pass the --global option, because then Git will always use that information for anything you do on that system.  If you want to override the username and email with different name and email. You have to use without --global option.

newsletters

Installation of git in Linux

This installation is for Debian/Ubuntu. Use your bash for installation. Git Package are available in apt.

1. From Shell, Git installation using apt.

$ sudo apt-get update
$ sudo apt-get install git

2. After installation is completed. Verify your installation by typing.

$ git --version
git version 2.9

Configuration of Git in Linux

After verifying your installation. Run the git and type the below code and setup the user profile. All these details are associated with commit when you perform the commands.

$ git config --global user.name "Coding Query"
$ git config --global user.email "[email protected]"

Read More: Basic concept of git

Installation of Git for Mac

One of the easiest ways to install the git in Mac is via Git Installer.

  1. Download the git installer.
  2. Follow the prompt for installation.
  3. After the completing the installation. Verify your installation using the code given below.
$ git --version
git version 2.9.2

Read more : Workflow of git

Configure your identity in git

The first thing you should do when you install Git is to set your username and email address. This is important because every Git commit uses this information.

$ git config --global user.name "Coding query"
$ git config --global user.email "[email protected]"

If you like this tutorial then don’t forget to subscribe our newsletter. Join us on Facebook, Twitter and telegram.

You may also like...

Leave a Reply