Push Project From IntelliJ To GitHub | IntelliJ 2023.2 | Latest Updated |

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
using cloud-based git services like GitHub bid bucket or gitlab has become a widespread practice in project development git being a free and open-source distributed version control system is tailored to manage projects of different skills ensuring Swift and efficient collaboration in this tutorial we'll go through the process step by step of pushing a project from intell Community Edition to a remote GitHub repository I have already covered this topic previously with the older version of intellig which was 2021 after that a lot of things has been changed in the recent version of intellig Community Edition so in this video I'm going to use the latest version of intelligy idea which is 202 [Music] 3.2 I have already installed intelligy idea Community Edition latest version on my machine so let me create a new project so this is the welcome screen of intelligy idea click on new project and give the project name like intelligy to GitHub you can give any name and I will keep this project as a Java project you can follow the same steps for any kind of project let me click on create I'm not going to add any files or folders because whatever it has autogenerated the same code I'm going to push to my GitHub repository so the first step is we need to make this project as a g project for that we need to enable it you see one option called Version Control you need to select this and here we have one option called share project on select this share project on and here we have some default option like GitHub and space but suppose you using bit bucket or gitlab those direct options we don't have here so let's click on other servic however I'm using GitHub but just to so for any kind of git based Cloud project I'm going to select other services now we getting the same window which we used to get in older version of intellig and here I need to select which version control system I want to use so I'm going to use G so select G and click on okay so as soon as I perform that step it is seeing that cannot run git git is not installed this I have done purposefully because some people get confused like when we are using intell and we don't have Kit installed then also we can push and pull the changes from or to the cloud repository which is not correct now we have two options either you go and download the get and install it or we can directly use the link provided by intell to download and install so let me use this option download and install and it will quickly download and install for you there's no need to go to git website to download the file and you can see it is installing the git here it will take some time so let's wait now you can see one message git has been installed let's repeat the same process of enabling the git in your project select Version Control go to share project on other services git is already selected click on okay so this time we can see it is showing that created git repository in this particular folder this is similar to G init command and now you can see it is showing you master this is local Master early it was Version Control but once we enable get in this project we see Master if you expand it you can see it is showing that it is a local branch called Master Second Step will be we need to commit the changes for that you can right click on the project and then you see one option called get this is the one way another way we can expand this master and we see commit from here also we can perform the same steps so whatever options you are comfortable you can use it so let's right click on this project and select get now select commit directory here we can see it is showing that we have some seven files on version so let me select only main. Java because I don't want to post everything so you can select it and give one commit message like first commit we need to use commit now because we have not configured the remote yet but we can select anything commit or commit and post but let's follow the process step by step so let's click on Commit since we have installed G cly we have not set the username and email ID this is the one time process so let me give my name and I will use the email ID like G Target common at gmail.com you need to use yours don't use mine now click set and commit you can see it is saying that set properties globally click on set and commit we are all done let's go to Project again right click on this project go to get and then click on push and here it is showing that we have not Define any remote so it is asking you to Define the remote but before defining the remote we need to create one repository on geub so that my changes from my local intelligent repository should be post to Some Cloud repository so let me quickly create one repository on GitHub you can use any cloudbed Services here like bit bucket or gitlab it will be the same process let me quickly sign in and I'm going to create a new repository you can give any name and this will be public or private whatever you want to have you can put it and click on create now we need to copy this URL because this is your address and this address I need to use as a remote in my intellig so copy it go to your intellig again and here we have something called Define remote click on this it says name origin because this is remote and paste the URL click on okay so it is saying that origin Master if you want to change this Branch name you can change it also simply select it and you can give any name but let it be Master by default and click on push anyway so now we need to authenticate we have created the GitHub repository as public but doesn't mean that anyone can send the code to that repository we need to authorize that so we have multiple options we can log in to GitHub account and it will automatically take care of that authentication or we can use the token so let's use token select this use token option and here we need to generate it so again generating the token has different ways you can go to your GitHub profile and from your settings here we have something called developer settings and you can see personal access token from here also you can generate the token let's generate a new token here click on gener need new token use the classic one give some name to it using the note like new token anything you can give it will be expiring in 30 days and select the scope whatever access you want to provide you can provide to it so I've just selected the basic one and click on generate token so we can see it has generated some alpha numeric values this is your exess token and make sure that you are generating yourself you're not using myess token so copy it and go to intelligy again and paste the token here or if you want to gener it through intj you can use this option as well now click on login now you can see the message Post Master to New Branch origin/master this master is local and it was was post to origin that means remote master and if you go to your GitHub and go to your repository whatever we just created we should see the codes there so here you can see it was post SRC first commit 5 minutes ago and here we have main. Java same code whatever we had in intelligent now if we expand this master you should see Master branch in local and also we have something called remote now where we have Master earlier this remote option was not coming because we have not post our changes to the remote repository but now we have posted so we have remote option as well so that's all in this video if you have any doubt please comment on this video If you really like my videos please like comment subscribe and share with others thank you everyone
Info
Channel: Retarget Common
Views: 14,197
Rating: undefined out of 5
Keywords: intellij, github, push project from intellij to github
Id: I9xeZ7aCKkY
Channel Id: undefined
Length: 8min 16sec (496 seconds)
Published: Wed Nov 01 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.