Skip to content

Latest commit

 

History

History
69 lines (35 loc) · 3.03 KB

github-git.md

File metadata and controls

69 lines (35 loc) · 3.03 KB

Instructions for Github Classroom

Accessing the Assignment

Click the invitation URL provided to you by your professor. A sample assignment for you to follow along with is provided here.

Github Invite Screen

If you get an error message, wait a few seconds, then click Retry Repository Setup. If it still fails, contact [email protected]. If everything works, click the URL for your new repository.

Github Invite Finished

Cloning an Assignment Repository

To retrieve the clone URL, click the green Code button in the corner.

Github Clone

If your menu says Clone with SSH, click the blue Use HTTPS link to change it. Cloning Github repositories over SSH does not work on campus.

Copy the provided url and in command prompt (or terminal), use the command git clone <url>.

Github Clone Results

You can now make changes in the folder that has been copied to your local machine.

Updating an Assignment Repository

After making changes, use the git status command to see a list of changes.

Github Status

To stage files for commiting, use git add <filename>. To remove files, use git rm <filename>.

Github Add

Once you have the files you want to save staged, use git commit -m "<description of what you did>" to create a commit.

Github Commit

Then send that commit to Github with git push origin main.

Github Push

You can check in the online repository browser to make sure the file made it to the server correctly.

Github Check Commit

To update an assignment, you'll simply repeat this process with the new or changed files. Note that if you receive an error message about the remote having changes that you do not, you will need to git pull origin main before you can push.

Github Pull Push

Testing an Assignment

If this is your first time using our testing software, you'll need to authorize the Communicator application to access your Github profile (the only information accessed is your Github username).

Checker Install

After you have connected your Github account to your BJU account, click the Actions tab at the top of your repository. If you have not yet finished the assignment, the top entry will have a red x.

Github Test Failure

Click the name of the result (beside the red x), and then click Autograding. This will display the details of the failure. Check to make sure your file names are exactly what was specified.

Github Test Failure Details

Once you fix the issue, you should get a green check.

Github Test Failure