Tino Intro To Java

Last modified: March 27, 2023

Gitting Setup

General

For this assignment your team will create an arcade-style game using Greenfoot. The first step will be to set up your development environment and workflow so your team can work together more effectively. With this in mind, you will be using git and github. Git is a program that keeps track of changes made to files in a folder (a repository). Github can host a remote repository, which allows you to store a copy of your repository on the internet, so you can clone it onto any computer. Each student will have a cloned copy of the repository on their computer and they will push (upload) changes to the remote repository on github as they make changes.

What is Git?

Git is a program that saves changes to a project in a database every time you commit ("save") to the database. Because every commit is saved separately, you can review previous commits and restore them if desired. You can also push ("upload") your database to an online host such as BitBucket or GitHub so that other team members can work on the same project or so you can work from another computer.

  • Git is a program that keeps track of changes to files in a folder
  • Git stores these changes, known as commits, in a hidden .git folder
  • The .git folder is known as a repository and is a database of all changes you commited.
  • Git can also push the database to a remote server to be shared by a team.
  • These instructions will be for GitHub, but you could also use any other remote repository provider such as Bitbucket. Regardless, you must use private repositories for school projects. Making your code available to other students is against the academic integrity policy, so public repositories for school projects is not allowed. Since we will be using Github Classroom, the repository will be created for you and it will automatically be private as per the assignment settings.

GitHub Setup

Sign Up For GitHub

Go to https://github.com/ and sign up for an account. Make your username the same as your school email username. Check your Schoology mail. Your teacher sent you a link specific to your period. Your team will form a GitHub Classroom team consisting of the same members. If you are the first person on your team to click the invitation link, you will be asked to name your team. Name your team according to this format:

2022_Java_P#_Team_#

Other team members will then select this team from the dropdown menu.

Set your name in your GitHub Profile

  1. Click on your user icon in the upper right corner and select "Your Profile"
  2. Click on "Edit profile"
  3. Write your full first and last name in the "Name" field
  4. Press the "Save" button

Download GitHub Desktop

  • Each team member should download and install Github Desktop.
  • Make sure you set your name as your real name and your email as the email for your GitHub account.

Configure Your Name in GitHub Desktop

If you failed to set your real name when installing GitHub, do it now: - Go to File → Options (or Settings in Mac) - Make sure the name and email are your full name and the email associated with your GitHub account.

Dark Mode

Outline