[MUSIC]
Git is a very popular version control system for software.
We need Git for working with our node ecosystem that we're going to use
throughout this specialization.
So, it is important for you to get Git onto your computer.
So, let's go through a few quick steps to setup Git on your computer and
then some quick commands to enable us to make use of Git in this specialization.
I will no go into too much of details about version control and how Git works,
and so on.
That is beyond the scope of this course.
Instead, we'll just get some basic understanding of Git.
Git is as I said, a version control system.
This is a software tool that enables us for
the management of changes to source code and maintaining your version history.
So as your source code evolves,
you will be able to check-in the code at different points in time,
so that you can always have a way of rolling back to a previous
version in case your updates to the code doesn't work correctly.
There are various version control systems that are in use in the real world,
including CVS, SVN, Git being a very popular mechanism for
version control these days.
Where did Git originate?
Git was designed by Linus Torvalds, the person behind the Linux operating system.
Git was designed as a version control system,
a distributed version control system for use in Linux kernel development and
it has seen much wider deployment in the real word.
No ecosystem is very much tied into Git and
that is the reason why we need get for this specialization.
Let's now move on to a few hands on exercises where you will first setup Git,
then you will learn a few basic Git commands and then also understand
how you can setup an online repository in places like GitHub or BitBucket for
synchronizing your source code from your computer to the online repository.
This is obviously not a comprehensive tutorial of Git, but we'll learn just
enough of the commands that are necessary for use in this specialization.
Let's now run through a few quick steps to setup Git on your computer.
One easy way of setting up Git on your computer is to go to this site
called git-scm.com and then download the Git installation files from there.
So when you visit this website, git-scm.com,
you will see on the right-hand side here, a button for you to download to Git.
If you want to, you can go directly to the downloads page here on this site and
then you'll find the downloads for various platforms and
you can download the one for your specific platform for installation.
This is the easiest way of getting Git onto your computer.
There are other ways of setting up Git, depending on your platform.
For example, if you install GitHub Desktop on your computer,
it'll automatically setup Git for you.
If you are using a Mac and you set up Xcode and
especially the Xcode command line tools, that will also setup Git for you.
On this site, git-scm.com, if you go to the documentation page,
you will notice that there is a book here called Pro Git.
You can just go onto the Getting Started link.
You will see a specific chapter here on Installing Git.
So juts go to this Installing Git site and there,
you have more details about how to install Git on your specific platform.
So, you can use any of the methods suggested here for
installing Git on your platform.
This is fairly straightforward, so
I'm not going to go through the details of how to do the setup.
Download the installer and run through the setup to get Git onto your computer.
Once you install Git on your computer, startup a command window or
PowerShell if you're using a Windows machine or
startup a terminal window if you're using a Mac or Linux machine.
And then at the prompt, Type in git --version to check
what version of Git is installed on your computer.
So on my machine, I have this current version of Git installed and
that is good enough for me to work with.
Once we verify that the Git is installed, we will configure a couple
of global identity parameters the user name and email address.
So that whenever Git does any comments as you will learn later,
it will make use of this information.
So to do, that I've deployed type git
config --global user.name and
then you can type in your user name.
There are other parameters that I'm going to configure is by email.
And to ensure that that this information has been configured,
we can type git config --list and
then it'll list out a bunch of configurations that we have done.
Some of these are automatically setup for you.
But if you want to, you can set them up as you require.
So here, I have my code editor value set to vi which
is what I used to do a command line editing of files.
So with this, we have completed the setup Git for use on your computer.
Once you got Git on your computer, it is time to go and learn Git bit by bit.
[MUSIC]