 Hey everybody, welcome back to the channel today. I'm going to be talking about the basics of git and github If you don't know what those things are I'm not quite exactly sure why you clicked on the video in the to begin with But basically just for the the nubes out there I guess Git is a software program that allows you to upload things to a git repository either hosted You know by yourself or by github or get lab or something like that get let github is just a place to store repositories it's mostly used by developers to store code and share codes with not only that sometimes their customers were put with with each other, but whatever You know, whoever they want to share it with things to be public it can be private whatever So the first thing you if you want to use Github in order to share your to upload files or even just to back up your dot files or whatever the first thing you want to do is create a Github account you can also use things like git lab or there are ways that you can host it yourself by using git I know your own server if you have a some kind of server You can do it yourself, but that's not what this tutorial is about. I'm going to use github. You just create your own account I'm not going to walk you through that Because it's just like any other thing you can just you just create an account you should end up on a page It looks something like this. It won't look exactly because this is an older account So then you press this plus button up here and hit new repository and then you give the repository name I'm going to call this and them Ubuntu and That's because we're going to be uploading our end them file that we've been working on in our tutorial system and to tutorial series our end new of them config file from scratch And you just give it us you can give it a description here And you want to create make sure it says public and that's it You don't want to do any of these other things quite yet. You're we're going to create our own rid me later on We'll might talk about getting more probably not tonight and then The you can always choose a license later. So you just create repository And then you're going to create it you it's really important that you don't add a read me on that previous page Because otherwise you do not get This URL you can find it other ways, but it's easier if it just takes you right to this URL You're going to need that So let's go ahead and switch to our virtual machine here I'm gonna Yeah Sign back in Oops, see if I can type today Yep. All right, so we're going to want to Open up a terminal and do an LS just to see what we're here. So I've created a Directory here you do this by make directory and I called it repository You can call it whatever you like you can call it get you call that files Whatever you need to call it just or file if you're just practicing I've already done that. So I'm going to CD into repository Actually, what I think what I think I'm gonna do is I'm gonna start over so that we can just you can see me do this So we're gonna do a make directory Dot files. Okay, we're gonna CD into dot files and we're gonna run get Hold on a second. I need to make sure that I'm doing this right because we're not redoing this video So you open up your terminal program and you make a directory and And then we want to do is create so touch read me that MD Okay, that's basically a markdown file that allows you to That's the gonna be the basically the home page or whatever shows up underneath the files. I can get help. Okay? This will basically show and we can Invm into read me. I hate not being on ZSH. I one of these days and This This is a File for our Neo Vim from stretch the series For now that will work just fine and you hit you save out of that And if we cat and it's to read me that Basically, that's just gonna give you what's in the file Now we want to do this get in it Okay, that tells get hot or get specifically that this directory is a get directory Now we want to do get add Read me. Okay Um Alternatively if you have more than One thing in the file and you don't want to go through the list of all you can do get add dash s all and that will add everything in the directory to To the Change the change tracker that basically tells you these are the things that we're going to upload to our repository Okay, so the next state thing step four is to create a commit. So we want to do get commit dash m basically this get commit is What this does is it tells get to look for anything that's in this directory That has been added that has changed since the last time we've added things and the dash m Option allows us to use to create a message. So this is just for Initial commit Okay, right. We got to do those things. Alright, so we're gonna change these things. Alright, I'm gonna do get I forgot That you to do this first, but so long as I had to do this dash edit global user email and Mine is MTWB 47 Gmail.com Okay, and Name this is just Matthew Weber Okay, you will have to do that so you that email address is going to be the one that you signed up here with your github for Under so if you whatever email you used so now we can go through and do the initial commit There we go. This is what you should see if you've been successful The next thing we want to do is connect your Repo with this directory. So we wanted to get remote add origin Origin yep, and then we want we're gonna need that H that URL that we saw earlier. So go back here and copy that and V yep, there we go and then You want to hit enter? Yep, and that shouldn't have any output at all if you've done it, right? Okay. Now we have connected our local copy of Dot files, which is the name of our directory to the repository called and them a boon to get Very simple the the last thing We want to do I believe I think they skipped us a file here I think we need to push it. I Think when I made these notes, I forgot to push something Yeah, all right It's interesting that they that I didn't write this down. So we get push and I think there is a Yeah, all right. So dash you is what we need to put here in origin Master okay, and then it's gonna ask you for your username Which line is this and your password and it's gonna upload and If it's successful, that's what it'll look like now if we go back to our Repository here and just click on here. You'll see now This is the file for neovim scratch video series and that's exactly what we had in our read me MD file now Basically, that's all you need to know But let's go through and actually upload a directory That we said we were going to do so What we want to do is CP dash R Okay, till the slash dot config and them and We want to do that right here and dot files Actually, it's just easier to do it this way Okay, and if we see you back into dot files I really can't spell today and we do an LS now We have a directory and them in there and the read me. Okay, so what we want to do now is get We want to do get add dash dash a for all Okay, that's going to add everything that's in the directory there It will basically say we want to go through and update everything that's in this directory and then we do get commit Dash M nvim files Okay, that's going to tell you tell get that everything in this that we've added Also needs to be checked for differences. Okay, and They'll tell that lists there basically everything for files of change 42 insertions And it lists all the files that will be uploading. Okay, and then we do need to do get push dash you origin master And we're just going to ask us for our username again and our password Okay, and wait for that to upload it shouldn't take too long and it's done and now if we go back to This here and we do a refresh We now have our in vials right here all of this stuff here now basically what you want to do Say we go through and make a change. Oops If you say we made a change to one of these thing files here, I'm just the cd nvim General setting Oops, I forgot that this so and then nvim settings up Okay, and then so we just made a Change to this file. Just we'll just add a comment Comment I can't remember. I think that that's the syntax for a comment in an event file It doesn't matter and we just save that now. We've made a change if we want to go through and Upload that to them or to to get we go we go back to the The highest directory of the game the the get directory get at Oh So we need to I've lost my train of thought Yeah, it's get add and then Okay, I don't know why that was so hard. It shouldn't have it. I should remember It's these little things that I thought Just completely lose my train of thought sometimes. Anyways, it's old timers disease is what it is and then we just get put push And then we need to do m and then minor changes Oops Why have I totally forgotten how to do this again? We just did it several times, right? It's not push that we needed it. Do we need to do get commit? I'm a dumb ass Commit dash and there we go Skipping steps minor changes Now get push dash you origin master and then Oops gonna have to try that again. I miss but mistype password There we go. And if we go back to this here And do a refresh and Settings we now have comment right there. Okay, so that is how it basically how you get I don't use it that often as you can tell I always have to look up those little commands And I really shouldn't have to there. Oh, there's only three. There's there's add There's commit and there's push add commit push add commit push if you remember those three after you've got things set up you can go through and can constantly update your Repository and you'll always have different versions. So if you go here and see history You can see that we have two different Versions and if we click on this here, it will actually show us the difference between these So that's get in a in a nutshell There's a lot more things you can do with get like just and all sorts of things. I don't know about those things yet I'm still learning But that's how you use get now if you like this video, give us a thumbs up. Give us a thumbs down Either one. I don't care if you like to give if you really like the video Give us a subscribe and hit the notification icon to make sure you're up you're alerted to all of our awesome videos and We'll see you next time