In this class, the remote repositories on GitLab will be created for you beforehand with the starting code. When we create your repo, GitLab should send you an email with a link to the repo; you should also be able to find your repository by navigating to the GitLab link in the navigation bar of this site, which will take you to the GitLab group that contains all your repositories for the quarter (along with public repositories containing the starter code, which you may ignore).
Once you've found your repo on GitLab, you'll need to clone that remote repo to get a copy on your own machine. Anyone already familiar with Git may use Git's command line interface or any other UI, but we'll use IntelliJ's Git UI in this guide. (If you opt to use another method, note that the course staff may not be able to debug any issues you encounter.)
If IntelliJ is open on the welcome screen, you can just click "Check out from Version Control" option.
Otherwise, if a project is already open, you can click "VCS" > "Checkout from Version Control" > "Git".
Afterwards, a window will open where you should enter the URL of your repository from GitLab and a directory to save the cloned repo into.
Note that this URL is NOT just the URL of the webpage you visit; instead, get this URL by navigating to the home page of your repository on GitLab ("Project" > "Details"), then clicking the copy button on the right side of the text box labelled "SSH". The URL should look somewhat like the one in the image above. (If the text box is labelled "HTTPS" instead, you'll need to click the dropdown to select "SSH" before copying the URL.)
(If you do not have a repo: for homework 1, you can clone this public repo. You will not be able to push (submit) until you have your own personal repo, however. If you're enrolled in the class but do not have a repo made for you, you should fill out this form to notify us.)
After the previous step, IntelliJ should have downloaded the repo onto your machine. If you've cloned the repo correctly, IntelliJ should also be able to tell that the code you just cloned contains a project that it can import, so it should pop up with another window asking whether you want to open it now.
It should be safe to choose "Yes" here to import and open the project. (More details on exceptions later.)
Make sure that "Gradle" is selected on the next screen, then click "Next"
Make sure that "Use auto-import" is checked and that "Use gradle 'wrapper' task configuration" is selected, then click "Finish".
Afterwards, IntelliJ will import and open the project. Note that it will also attempt to download any other libraries needed for the project, so make sure you remain connected to the internet while it finishes.