This is public repository used for publishing assignments and lecture materials.
You will first create a private repository that mirrors this one. The following instructions describe how to do so.
Please clone the public class repository:
git clone https://github.com/qcfu-bu/cs320-spring-2024
Please create a private repository of your own on GitHub.
For instance, the following one is created for my own use:
https://github.com/qcfu-bu/cs320-spring-2024-private
Then mirror-push the class repo into your own private repo:
git -C ./cs320-spring-2024 push --mirror https://github.com/qcfu-bu/cs320-spring-2024-private
Clone your private repository. All the work you do for this course should be done in your private repository.
git clone https://github.com/qcfu-bu/cs320-spring-2024-private
Add the public repo as a remote for your private repo.
git -C ./cs320-spring-2024-private remote add upstream https://github.com/qcfu-bu/cs320-spring-2024
At this point, you may delete the cloned public repo as it is no longer needed.
rm -rf cs320-spring-2024
Remember to sync with the class repo frequently. To sync with the public repo, run the following commands inside your cs320-spring-2024-private
directory.
git fetch upstream
git merge upstream/main main
Updates made to the public repository will now be available on your computer. However, these changes will not appear on your GitHub yet. Run the following command to upload these changes to your GitHub.
git push
When you have finished working on an assignment, execute the following command to commit your changes. Committing serves as a checkpoint that allows git to track changes to your repository. A commit message (the string following -m
) is usually included with a commit to describe the changes made.
git commit -m "a commit message"
In order to submit your assignments, first push solution to your private repo on GitHub using git push
. On Gradescope's assignment submission page, choose GitHub as your submission method and select your private repo from the dropdown menu.