Hello and welcome to this video in this video, I'm going to add all the falls from my project to my
local gitte repository.
This is the new directory I created for my online deployment.
Have all the files in there that I want deployed and have opened up the directory in my text editor.
So all those files here, I'm going to add to my local git repository.
So the first thing I need to do is create an empty kit repository.
Once I've done that, I will then add all this files to that local repository.
Open up your command prompt if you on the Windows computer or your terminal.
If you are on a Mac, make sure you are in your project directory before you initialize the kit repository
so you can see my project directory here.
Thus, the directory on my desktop.
This is represented in the command prompt.
The first and I need to do is to initialize an empty gate repository.
The command to initialize and create an empty git repository is kit space in it.
Once you've Typekit in press, enter on your keyboard and that will create an empty repository you can
see tells you here.
An empty repository has been initialized and it tells you the path.
If you open up your project inside your text editor, you'll notice that all your files and folders
are going green.
All the files for the green here can be added to the gate repository.
To add all the files from my project directory to the kit repository.
You type in this command, get space, add on space dot.
That means it will copy all the files in my project directory.
Once you've entered that command, press enter and the files will be copied across.
If you notice all the files here, I've got a next to the air here.
On the side of the files basically means that we can add all the files to the staging area to check
the status of the files we've just added to the kit repository.
We type in the command gate space status and press enter and that will tell us all the files that have
been added to the repository.
So at this stage, the files are not confirmed in the repository yet.
They've been copied to a staging area, so they are currently in the staging area.
So in order to commit them to the local git repository, we have to issue another command.
The command required to commit the files to the local kit repository is gate space, commit space,
dust em the dust and basically is a message flag.
It allows you to add a text message to the commit operation, so the message of that is first commit.
Once you've done that, just press enter.
As you can see, the files have been committed to the main route is called master.
You can see the message I attached to it, which is called first commit.
So now all our files are now in the local git repository.
If you type in the command gate space status, you can see here.
After issuing the command gate space status, it tells you here there's nothing to commit.
Everything is clean because we've already added the files and committed them to the local repository.