Let's Learn Godot! Integrating Git With Godot

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey guys this is mitch with fine point cgi and today what we're going to talk about is how to integrate get into godot so we're going to go through the process of downloading the get godot add-on we're going to download get as well we're going to install git and we are going to go ahead and set up our add-on with a godot project and then we are going to go ahead and create a git repo and commit some code to that git repo locally and then we're going to talk about some of the differences with this integration versus something like sourcetree or github desktop or get bash and some of the benefits and limitations of both of them so that's what i have in store for you guys today so let's go ahead and get started okay so the first thing that we're going to do is we're going to go out to the godot engine get plug-in and we're going to go ahead and pull that down so we're gonna click right here godot get plug-in in my case i'm gonna grab version 1.2.2 so we'll go ahead and click on that and i've already downloaded it so we're good there the next big thing that we're gonna have to pull down is get so we'll go ahead and pull that down so download that for windows and you will see that i'll go ahead and pull that down real quick and then we're gonna have to go ahead and download it so i'm gonna go ahead and pull this up and i'm gonna go ahead and double click on get and we will go ahead and install it so we're going to click next and we can go ahead and keep all of this go ahead and hit next and i'm going to go ahead and allow get to the side i am going to bundle with ssh i'm going to do the get credentials manager and i am good with those and we will go ahead and install it oh in my case i have some stuff open so let me go ahead and close my bash and i will close my source tree as well and we'll go ahead and hit install and it's going to go ahead and remove the previous version which in my case is 2.28 i've already have get so it's always good to keep your stuff up to date so let's let that run through and i will be right back all right so i'm going to go ahead and uncheck review release notes and we will go ahead and hit finish and you can see i already have a bunch of the get plugin so i'm actually just going to go ahead and get rid of those i'm going to right click this and extract and let's extract this we're going to need a godot project i already have one for my previous tutorial my app lovin tutorial so i'm going to go ahead and open that up so applovin right here i'm going to open that up and i'll resize this for you okay now that we're inside of godot what we need to do is we need to put our add-on into godot so what we're going to do is we're going to right-click on our add-ons and open in file manager and that's going to go ahead and open up our file manager here and you can see that i already have my native lib now obviously we don't need that but that's just part of the previous tutorial so what we can do is we can open up our get integration make sure that you have it extracted in my case i already have it extracted it's right here so i'm going to go double click on that and we need to make sure that we have our godot get plug-in we don't need this section we need to have this specific file because if you put a file underneath here or if you don't have it inside of a file you're going to run into a problem so let's go ahead and copy this and paste it and then we're going to go into godot and we are going to go ahead and click on project version control setup version control and then you'll see that says version control system is get api and we'll go ahead and click initialize and what that's going to do is it's going to go ahead and create our get repo locally on our machine one of the things that this plug-in can't do is it cannot create remote get repos so if you're trying to create like a github repo through this you're not going to be able to use this plug-in to do it so that's just something to keep in mind now this is going to take a long time so i'm going to let it run through and then i will be right back okay so now that it's done we're going to go ahead and click close and you will see that now much has changed but we have gained two additional tabs inside of godot we have gained a version control down here which i will show you guys in a moment and then we gained a commit over here on the right now the commit tab is really cool because it shows you all of your changes that has happened since you've last committed so in my case since this is an initial commit you can see that there is lots and lots and lots of changes so what i'm going to do is i'm going to go ahead and click stage all and that's going to stage all my files and then i'm going to go ahead and type initial commit and we'll go ahead and commit those changes and this will probably take a minute as well so i'll be right back all right you will see that this is now completed and you'll see that it says committed 10 398 files so that's one of the reasons why it took so long now if i come up to one of our buttons and i move it let's say over a little bit and i ctrl s and save you'll see that it says modified up here and what that means is that means i modified and moved my button so if i go ahead and click on that you'll see that i can actually get a status down here in my little version control section where it can tell me exactly what's changed i moved my button from 98 pixels to 158 pixels and i moved it as well from 704 to 764. so you can see i moved it to the right according to this also i can get code changes as well so if i go into let's say my ad manager.gd and i add in a print let's say we add an open pop-up here if i click on my gd script you can see that it says hey he added this information here and if i go ahead and delete something so if i go ahead and get rid of this age restriction and i save when i click on my ad manager you'll see that it says hey you added print and you removed the set age restriction now if i control z and i control s and keep that because i'd like to keep that and you can see now i can go over here and type added print state mint to my ad manager and then i can go i want to stage this one because i don't want to necessarily keep this change so i'm going to go here and i'm going to stage that specific one well in my case i staged both because i have both of them selected that's my fault oh well and then i just go ahead and i can click commit oh i need to actually stage so stage that commit and you'll see that it committed my file now one of the things that i need to teach you guys is if let me delete that and save if i stage so i have these two staged files you can see right here if i click my refresh button it will reset my stage so then i can just stage the one and you can see i just have the one staged so if you click this refresh button it actually removes your stuff from the staging so that's good to know so this is a really cool system and there's so much you can do with it now there are a lot of limitations here you can't do branching like you can inside of something like sourcetree or github desktop or get bash you can't revert anything if you commit it you need to actually go into get bash or something like that again you are unable to push your code to a remote repo so if you have like github or something like that you can't just push directly from this plugin and you can't stash and apply changes so those are just some things to keep in mind you will need an external tool to help you out with that for instance an application called sourcetree here which is what i use at work actually so we'll go ahead and open this up and actually i think i already have it open applovin yeah this is the one so you can see if i click here it shows the same thing as well but i can also push pull fetch branch merge and do all the things that i want to do so it's a little bit more powerful and has a lot more features and things like that or of course you could use you know github desktop if you prefer i can show you guys that so you can see here's github desktop and if i were to open up that repo you can see you can see what it looks like and it's basically very similar to a source tree so that's kind of one of the struggles that i have with the godot plug-in is it's just not as good as a external source control system but for small changes and things like that it's a really cool little system that you can use to to back up your project in increments now when it comes down to actually doing and using get generally speaking i don't use this i usually like to use something like github desktop or if i need a more robust system i'll use something like sourcetree to do all of my get handling that's not to say that this isn't a good system or anything like that it's just to say that it's a good system for what we need it to do but that is all i have for you guys today so if you like this video hit that like button hey if you just like this video go ahead and hit that dislike button because i'm here to make content for you guys what do you guys think about git integration is it actually worth using or would you rather just use your get interface of choice like the git bash or like github desktop or sourcetree which one would you guys rather use let me know in the comments below and hey if you guys have any questions about this or any comments hit me up on our discord link is in the description below but that is all i have for you guys today so thank you so much again for watching and i will see you all next time thanks you
Info
Channel: FinePointCGI
Views: 673
Rating: undefined out of 5
Keywords:
Id: WpTIxOM4mf4
Channel Id: undefined
Length: 10min 52sec (652 seconds)
Published: Wed Nov 03 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.