- The first step to working on your assignment is to create the repository on GitHub. NO code should be written before an assignment has been accepted, and a repository automatically created for the student. Your instructor will provide you with a link to your assignment. When you click the provided link, you will be prompted to "Accept Assignment" and then will be provided a link to your repository.
- Next, clone the repository to your local machine using git. To clone a repository, click the clone or download button on the GitHub repository page, and copy the provided url to your clipboard.
- Using the terminal on MacOS or Linux, or Git Bash on Windows, navigate to your COMP 167 directory and then clone the repository using ``
Sometimes, especially if you work on your project from multiple computers, you will experience a merge conflict when you attempt to sync with your remote.
Merge conflicts are a totally normal part of source control management, and resolving them is quite simple.
- Whether you are resolving the merge conflict on the GitHub desktop app or on the Remote (using the website), the process is quite simple.
- First, examine the two versions of the file below. Notice that both have different changes on the same line. One was edited in Netbeans, and the other from the GitHub website.
- Just like branches allow members of a development team to work on different features independently of each other, forks allow entirely different teams or individuals to work on projects in their own "silo", so to speak.
- Imagine you find a great open source app that you'd like to use, but you really need it to do one thing differently. The easiest way to accomplish this is through a fork! You can fork the repository, make the change you need to make in the code, and build from your fork of the repository rather than the original developer's.
- If you think your change can benefit the community as a whole, you can make a pull request to merge your fork back into the original project, just like branches!
- It may seem like forks are just more complicated branches, so why use them?
- Branches work just fine for any developer who has push access to a repository. Push access means the ability to push commits to the repository. You are
When you use git from the command line, use the following steps:
- On Windows, launch Git Bash, on MacOS or Linux, launch a terminal.
- If you have not done so on your machine, create a COMP167 directory in your home directory using
mkdir ~/COMP167
- NOTE: This command only needs to be run once on each machine, to create the directory.
- Navigate to your directory using
cd ~/COMP167
. - If your repository already exists locally, navigate to it using
cd [your-repository-name]
, if you want to check the contents of your directory, usels
. - If your repository does not exist locally, get the clone link from the "Clone or Download" button on the GitHub Repository.
The first step to working with code on your personal computer is to install git for your operating system. Git is a command-line utility that is available for every major operating system. The steps vary greatly by operating system, so look for the instructions best fit for your machine.
- Download the git installer from the git website.
When you use git from the command line, use the following steps:
- On Windows, launch Git Bash, on MacOS or Linux, launch a terminal.
- If you have not done so on your machine, create a directory to hold all of your git repositories. For a project this parge, it may be wise to use a directoy just for this project's repositories. You can create a directory using
mkdir ~/Documents/aggie-autonomous-auto
(or whatever you want to call your directory). - NOTE: This command only needs to be run once on each machine, to create the directory.
- Navigate to your directory using
cd ~/Documents/aggies-autonomous-auto
. - If your repository already exists locally, navigate to it using
cd [your-repository-name]
, if you want to check the contents of your directory, usels
. - If your repository does not exist locally, get the clone link from the "Clone or Download" button on the GitHub Repository.
JavaFX Space Invaders game developed as an assignment for high school students.
Created by Chris Cannon
This is a basic JavaFX space invaders game. The code is split into three primary areas. Datatypes holds the underlying data that is used to run the game, this is basic code that holds information and provides it to the program. Framework is the code that is used to interface between the program and the computer. GUI is the graphical user interface, the code that the user interacts with directly.