From the course: Kotlin Essential Training: Object-Oriented and Async Code
Using GitHub - Kotlin Tutorial
From the course: Kotlin Essential Training: Object-Oriented and Async Code
Using GitHub
- [Instructor] The exercise files for this course are stored on GitHub. There are branches for both the start and end states of each video where we work on code. You can view a list of all the branches here in GitHub from the branch dropdown menu. For example, if you wanted to find the start state for video 02_01, top level properties and functions, you could look through this dropdown menu and find the branch labeled 02_01b. And the ending state would be in the 02_01e branch. There are multiple ways to work with this project from within IntelliJ. One simple way is to copy the URL from the Code button, and then open up into IntelliJ to check out the code. Once in IntelliJ, you'll want to select Get from VCS. You want to make sure Git is selected for the version control system. And then you'll paste in that copied URL into the URL field. Select whichever directory you'd like the code to be checked out into. And then click Clone to clone that repo on your local development machine. You may receive a few dialogs asking if you want to add the files to Git. Go ahead and ignore those. But chances are by the time you download the files, there will be updates to IntelliJ and the associated plugins. If you receive a dialog asking you to upgrade your dependencies, please do so. Then wait for the project to sync. It typically takes longer when the project loads for the first time. Once sync is complete, however, you're ready to work with this version of the code. By default, we're running the code from the main branch. As I mentioned earlier, I've created branches for each video in the course where we modified code. If you'd like to follow long, use the branches popup menu in the lower right corner of IntelliJ to change your desired branch. As an example, let's check out the code for the start of the 03_01 video. So I can search 03_01 and I will select the b branch to check out the code for the beginning of that video. Once I click the branch name, I'll be prompted to check out the code. And now once that's complete, we're ready to work with this version of our project and follow along with 03_01. If you run into any trouble checking out the different branches, or with using Git in general, I recommend searching the course library for the Git Essential training videos.