 Hey, what's up YouTube? This is John Hammond and this time I want to showcase a video on the github to get lab transition So this is kind of off the tails of something that happened in the real world lately. IRL Where Microsoft bought github and that was a pretty big bummer to most people So I'm not gonna be around the bush I'm not gonna try and avoid this topic because this is a lot of the reason why there's been a flurry of stuff on the internet Twitter lots of computer science and infocyte people blogging about stuff moving their projects to get lab So this all happened. I think about two weeks ago. You'll see most of the news articles are around then June 4th ish So the flurry has kind of died down, but there are still some news articles that are coming out Around this time period June 18th June 20th, etc. Etc. Or today even whatever so Obviously git lab has been trying to capitalize on this so there are some blog posts that they've released as to like Yo, absolutely. Totally. You should come to git lab because Microsoft buying github may not be a good thing Like I'd love to trust Microsoft and I do I appreciate them with this open-source initiative that they've been doing But I still have an inkling of that kind of backhand business module They had of embrace extend extinguish or whatever that Weirdness was so this video is off the tails that you are trusting of git lab You're pretty excited about it and you are willing to move on into it rather than than github. So I have a github account and I want to move it into a new git lab account that I've created and I want to showcase how to do that But obviously on the internet there is a lot of flurry about all this moving to get lab stuff hashtag on Twitter, etc So totally post a tweet if you're into that and you're doing this thing So I'm gonna log into my github account github.com and I will sign in with my account username or email address, whatever. Okay, so I have a bunch of things here all of my repositories And let's see. Well, let me just get to my page Yeah, so I have a decent amount of repositories that I would like to be Kept well and kept together So I'm going to go ahead and put that on to git lab because I'd like to move out of github and move into git lab Since now it's gonna become Microsoft property There's been some stuff between Brian Lunduk. He's got some pretty good philosophy on this He's been saying like maybe next year github will be renamed to like Microsoft Visual Studio repository something cheesy So again, I'm going to log into git lab here So now I can go ahead up to the top right and create new or new project in green here And you'll be given this page where you can create a new project But you'll want to import a project and a project with this lingo is the same thing as a repository in github So you've got options once you go to that import project tab you can select From github import project from github So you'll be given this page where you can import repositories from github If you use a personal access token or whatever you can do it that way But the simplest thing and easiest thing I found is just click this big green button to list your github repositories If you're already signed in like I kind of am over here It may be able to associate from email or from username or however magic it does I'm going to assume you're using the same email address for your accounts You'll see you're put to a github page where it's authorizing an oauth token or an authorization token to let git lab use some of the stuff And get it let let git lab use that github API. So we can take the green authorize git lab. Let that happen Once that is all done now you'll be able to see okay Here are all of your repositories and other things that you've worked with from your github account Accessible on git lab so you can click import all repositories if you wanted to or we can just go through a specific one So I'll just steal Cypher plane Which was some cheesy Python code that I had wrote to differentiate between Cypher text and plaintext if we're given a lot of those in Any capture flag or cyber security challenge? So let's go ahead and click on that Import it will start that and once it's done It'll be marked green and now you'll have that all set up so these links now have both the from github aside and the to git lab side so you can click on your to git lab one and Magically you'll have that repository or that project now migrated into git lab And again, you can do this for as many of the repositories as you want on the previous page or import all of them If you're working with a ton So that's the easy simple way to do it pretty awesome now We've got that link and if we wanted to in a command line, we can just use git clone that stuff Got it pulled CD Cypher plane nice. Let's touch From git lab dot text. Let's add that Well, I added it twice whatever Added a note from git lab And we can get pushed that so now we're going to be working in git lab just like this Go ahead and Push that change If I refresh this git lab one, you can see we've got that note here But obviously back in our git hub That's not going to be noted because we just haven't pushed to that rendition of the repository And if we wanted to we could just kill all this stuff. We could delete this account We could leave this repository etc One thing I do recommend you doing is after you've made the all these transitions and the Move that you wanted to do go into the settings of your github account and then go ahead into your application section down here on the far left pane and Hit the tab for authorize OAuth apps because now that we've allowed git lab to use that API Once we've made all the transitions and all the migrations that we really want to let's go ahead and remove that from the an app like remove that application from the OAuth orization tokens that github has Because who knows we could we could dream up any crazy horror stories or nightmares of Microsoft totally ruining this thing and Abusing this git lab access who knows I don't know so go ahead and click on revoke and click on understand revoke access So once that's done that you won't be able to easily import things like if I refresh the page now access is denied But you have to have that authorization token in existence for you to really be able to do that Move from github to git lab with that simple interface that git lab provides So that's it, but man. Look at that. Look at how slick and nice and how awesome git lab actually is Tinker with some of these repositories pull some of your own stuff and then work with it because it's not gonna change your workflow if you're already working with git You've just got a different place to call home and honestly, I love this interface kind of a lot more than github So I'm happy to be in this spot But thanks for watching guys. Hope you're enjoying these videos if you are like comment subscribe all that good stuff watching. I'll see you later