Git Installation Guide

Step-By-Step Guide To Install Git

ยท

3 min read

Git Installation Guide

Table of contents

Hello Folks, Welcome To The Second Blog From The Series Of Git & GitHub. As Promised I Will Deliver The Comprehensive Series, Lets Get into the second part without any delay!

Prerequisite For this blog is the previous two blogs where I've discussed in depth about the Version Control System and the previous blog of this series...Read That Here -> Part-1

If You Have Already Read that out, Then Continue With This Blog Post. In This Blog, we are going to see the steps involved in the installation of git in our system.

So, let us Begin!๐Ÿš€

Git Installation

So, Here's The Step-By-Step guide that you need to follow, in order to install git on your system.

For Windows OS:

  1. Go to the Git for Windows website gitforwindows.org

  2. Click on the Download button to download the latest version of Git for Windows.

  3. Once the download is complete, double-click on the downloaded file to start the installation process.

  4. Follow the installation wizard's prompts and select the default settings unless you need to make any changes.

  5. Once the installation is complete, open the command prompt or Git Bash to verify that Git is installed by typing git --version. If Git is installed correctly, it should display the version number.

For Mac OS:

  1. Open the Terminal app on your Mac.

  2. Install Xcode command-line tools by typing xcode-select --install in the Terminal.

  3. Next, install the Homebrew package manager by typing /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" in the Terminal.

  4. Once Homebrew is installed, type brew install git to install Git on your machine.

  5. Once the installation is complete, type git --version in the Terminal to verify that Git is installed correctly.

For Linux:

  1. Open the Terminal app on your Linux machine.

  2. Install Git using the package manager specific to your Linux distribution. For example, on Ubuntu, type sudo apt-get update followed by sudo apt-get install git.

  3. Once the installation is complete, type git --version in the Terminal to verify that Git is installed correctly.

๐Ÿ‘‰Git is by default installed under /usr/bin/git directory on recent Linux systems. Check it by running the command before installing git whereis git

That's it! Git should now be installed on your machine, and you're ready to start using it for version control.

On Successful Installation Of Git, it provides us Git Command Line tool and Git Bash(A Terminal)..in Linux you won't have Git Bash, you can use git CLI.

Though we can write our git commands in Windows Power Shell Or Command Prompt, writing commands on gitbash gives the feel of a Linux terminal, so developers use gitbash generally!

๐Ÿ‘‰ GUI version seems much easier to folks, as via some clicks only stuffs can be achieved...GUI uses the command line behind the scenes...so if you want to lead as a great developer, you must use git CLI tools as it will provide you much more functionality than GUI based.....So, master the command line first, and then if you wish to switch to the GUI variant you can... But that's not recommended!

With That Set, let us End Up Here!, I hope that I was able to add some knowledge and values to your learnings through this blog!

Still Doubtful regarding any points ?๐Ÿค”๐Ÿคทโ€โ™‚๏ธ Comments are always open. I will be Glad to help!

๐Ÿ‘‰This Was The Part 2 Of The Series Of Git & GitHub, Stay Tuned For Next Blogs!

๐Ÿ‘‰Do Consider Subscribing to The Newsletter, so that you never miss an update from us!

#git #github #vcs #part2 #LearningInPublic #wemakedevs

#HappLearning Folks!

Did you find this article valuable?

Support Prakhar Sinha by becoming a sponsor. Any amount is appreciated!

ย