Seed Repo

Welcome to FH 26894 and FH 26894! This repository will house the assignments.

How this repository works

This repository is a copy of a "seed" repository maintained by the TFs. Throughout this semester, your TFs will add assignments to the seed repository, and you will be responsible for copying them into your local repository (using fetch and merge, in git-speak). Assuming you've already cloned your repository locally using the Github Classroom link, you can get new files for subsequent assignemnts:

git remote add seed_repo https://github.com/Harvard-CS249R-Fall2020/assignments.git # only needs to be done once
git fetch seed_repo
git merge seed_repo/master -m "Fetched new assignment" --allow-unrelated-histories

These commands:

  1. Tell your local git repository where the seed repo is (and calls it seed_repo),
  2. Get that repo from github.com,
  3. And merge it with your local files.

Some tips for getting GitHub setup (if you haven't used it before)

  1. Install git on your computer if you haven't already. For Linux/Mac OSX you can use apt-get or homebrew to install (e.g., sudo apt-get install git). For windows you can use the GitHub Desktop Client or download and install it directly
  2. Create a GitHub account. We suggest using ssh over https.
  3. We strongly encourage you to learn git instead of simply using the github website. Here are some useful links for interested students: Harvard/SEAS, Github tutorials, Git Cheatsheet.

At a very high level: Use git clone to get a copy of the repository on your own machine. Use git fetch and git merge to access new assignments and updates. When you are ready to submit your work, use git status or git diff (to check and analyze for uncommited changes) and git add --all, git commit -m "msg" to save work and git push to send to the server (and git pull to download from the server).