Showing posts with label Git. Show all posts
Showing posts with label Git. Show all posts

Sunday, January 4, 2026

How to initialize your brand new project to Git using command - git init ?

 How to initialize your brand new project to Git using command - git init ?


Purpose: Start Git tracking in a project.

What it does:

●      Creates a .git folder inside your project

●      Enables version control

●      Does not upload anything online

When to use:

●      When starting a brand-new project

●      When you want to add version control to an existing project

Example:

git init


Terminal Output:


Saturday, December 6, 2025

How to install Git ?

Steps to install GIT on your local system(Windows, Linux, Mac)

Before installing Git to your machine, it's a good idea to check if it's already installed onto your machine by simply typing the below command.

  • Open a command prompt (cmd on Windows) or terminal(Linux / Mac)

  • Type a command 


        $ sudo git --version


In case nothing shows (i.e. no output on the terminal) then you have to install the Git else you can update the Git incase version is of OLD.

Installation on Linux:

For RPM based distribution, such as CentOS or RHEL, use below command:

                $ sudo dnf install git-all

For Debian based distribution, such as Ubuntu, use below command:

        $ sudo apt install git-all


Installation on Mac:

MacOS comes with Git installed by default and you can check it via the terminal with command


         $ git version


Nevertheless, if you don't have Git installed for whatever reason, you can use Homebrew to install the latest version of Git.


Install homebrew if you don't already have it, then:

        $ sudo brew install git


Installation on Windows:

You can visit the official site to download the Git build/binary. Browse https://git-scm.com/download/win and the download based on your OS (x64 or Arm64) .

  1. Once the installation has started by double clicking on the Git binary, follow the instructions as provided in the Git Setup wizard screen until the installation is complete.

  2. Make sure to check the "Add to the system path" or similar option so that you can use Git seamlessly from anywhere in your system.

  3. To verify Git is installed, open the windows command prompt and type $ git version


Reference screenshot :

git download page






Sunday, November 30, 2025

What is Git ?



Git stands for Global Information Tracker. It is an open-source tool developed by Linus Torvalds in 2005.
It is a distributed version control system (DVCS) that allows multiple users to work on the same project simultaneously. It helps developers track code changes and maintain a history of modifications. Git is designed to handle everything from small to very large projects efficiently.

There are several features of Git, including:

Distributed workflow

With Git, developers can work on thousands of parallel branches simultaneously. 

Local repository

The Git repository stores your source code and its development history locally.

Collaboration

Git facilitates teamwork and innovation thanks to its powerful collaborative capabilities. 

Speed and efficiency

With Git, you can handle projects of any size quickly and efficiently

Linux: How to change OS language via terminal?

  In this post , I will be talking about how to change language of Linux OS from Terminal . If you are not a frequent user of Linux and str...