Once we’re successfully logged in, IntelliJ IDEA will ask us what we want to call the repository that we’re about to create on GitHub. Tip: if you have multiple GitHub accounts, you can add your GitHub accounts by going to the IDE Preferences -> Version Control -> GitHub. If you log in with your username and password, and have two-factor authentication enabled for GitHub, IntelliJ IDEA will pop up an additional dialog asking you to input your authentication code. If you don’t already have a GitHub account, you can use the Sign up for GitHub link in IntelliJ IDEA to create one. This also provides the option to log in using a token from GitHub, but even if we don’t select that option, if we log in with our username and password here IntelliJ IDEA will generate a GitHub token and use that to log in. If we’re not already logged in to GitHub via IntelliJ IDEA, we’ll be shown a log in dialog where we can enter our GitHub username and password. ![]() We can use IntelliJ IDEA to share this project on GitHub, we can go to the VCS menu and select Share project on GitHub. It’s not currently set up with any source control, which we can see in IntelliJ IDEA because there’s no option for opening a Git window, and if we list the project’s files in the Terminal window, we can see there’s no. In this tutorial, we use a sample Hello World application that we know works because we’ve seen it run successfully. Let’s assume we’ve created an IntelliJ IDEA project containing the code we want to share on GitHub. Sharing Your Project on GitHub (Quick Approach) The second approach is multi-step which can be used when you want to create a local Git repository for your project separately from publishing any code publicly on GitHub. The first is the quickest where you create your local and remote repository in one step. In this blog, we will go over two approaches. There are a few ways to use IntelliJ IDEA to publish code that we’ve written on GitHub. ![]() This provides an easy way for people to skim the content quickly if they prefer reading to watching, and to give the reader/watcher code samples and links to additional information. This blog post covers the same material as the video with some additional tips and tricks. ![]() In this blog, we’re going to look at how to share code that we’ve written on our local machine to a repository on GitHub.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |