No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Homework 0

This is a testing repository for LIN 637 Computational Linguistics 2 at Stony Brook University. It contains background materials on the software used in the course, and students should take great care to read all the documents very carefully.

The repository also provides students with an opportunity to familiarize themselves with the workflow used in the class. All homeworks for the class are distributed as private repositories, and students have to submit their solutions via pull requests. The instructions below are part of every homework repository.

Github Instructions

  1. To start, fork the repository. Your account now contains a new online repository which is an exact copy of this one. Every folder corresponds to a homework exercise and contains one or more files. If the folder contains a file named instructions.mdown, check that one first. If no such file exists, the instructions are spread over the other files. You can edit these files directly in your repository, or you can first sync the repository to your computer so you can work on the assignments offline.

  2. If you want a local copy, proceed as follows:

    1. Clone the forked repository to your computer. In your forked repository, click on the green button labeled Clone or download and copy the URL. Let's suppose that the URL is https://foo/bar.git for now. Then open a terminal and type
      git clone https://foo/bar.git
    2. Edit the files.
    3. Once you are ready to upload the homework, proceed as follows:
      1. Open a terminal and use cd to move into the local clone of your forked repository. For example, if you cloned the repository into the folder hw1 under Downloads, the command is cd Downloads/hw1.
      2. Run git add . to indicate that all files should be added to the next revision snapshot.
      3. Run git commit -m "some message" to create a new revision snapshot. Replace some message by a meaningful description, e.g. all exercises done or still need to add docstrings.
      4. Run git push origin master to sync your local changes to the forked repository.
      5. If you make changes at a later point, repeat the previous steps of git add ., git commit -m and git push origin master.
  3. Once you have uploaded all your solutions, create a pull request on the original homework repository to turn in the assignment.

The diagram below shows how files are being created and copied around by the various steps.

Github forking diagram

To learn more about git, check out the interactive Github tutorial.