Getting started with Git!

Pooja Shah
2 min readJun 2, 2021
Getting started with Git

What is Git?

Git is the most popular version control system in the world. Git is a free, open source, super fast, scalable, cheap branching and distributed version control system. Using Git, many developers can make changes to the same code base at the same time. In distributed system every team member has the copy of project that was a history on their machine so, we can save snapshots of our project locally or on server. There are many Graphical User Interfaces(GUI) specially made for using Git. Git comes with built-in GUI tools, most popular tools are GitKraken and Sourcetree.

Git setup and installation

Git is a command line program. To install Git in your system, you can visit here, go through steps recommended for your OS.

After you have successfully installed Git on your system, type the command git — version on terminal to check the version of git installed on your system. To Git installation must have a remote repository like GitHub and GitLab.

Create a free GitHub account

Visit GitHub.com and click on signup, follow few easy steps to create your free account.

Configure Git globally on your system

Now you need to configure Git globally on your system so, system can understand who is pushing/pulling or owner of the code. There are some settings like name, email, default editor, line ending and etc. , those we can specify in this configuration. There are 3 different levels of configuration:

  1. System — for all users.
  2. Global — for all repositories of the current user.
  3. Local — for the current repository.

The most important configurations are the username and the user's email. To set few important global configurations, follow the below mentioned commands:

  • git config --global user.name "your name"
  • git config --global user.email "your email address"

Now you have successfully installed and setup the Git on your system.

Next, you can either create a new repository into your GitHub account or you can clone existing repositories from GitHub to your local machine and start working on projects.

Thanks for reading my article.

--

--