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:
Go to the Git for Windows website gitforwindows.org
Click on the Download button to download the latest version of Git for Windows.
Once the download is complete, double-click on the downloaded file to start the installation process.
Follow the installation wizard's prompts and select the default settings unless you need to make any changes.
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:
Open the Terminal app on your Mac.
Install Xcode command-line tools by typing
xcode-select --install
in the Terminal.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.Once Homebrew is installed, type
brew install git
to install Git on your machine.Once the installation is complete, type
git --version
in the Terminal to verify that Git is installed correctly.
For Linux:
Open the Terminal app on your Linux machine.
Install Git using the package manager specific to your Linux distribution. For example, on Ubuntu, type
sudo apt-get update
followed bysudo apt-get install git
.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!