You are required to do all labs on the class virtual machine (based on Ubuntu Linux). To get the virtual machine running on your personal desktop or laptop, take the following steps.
If you wish to use your own existing Linux-based desktop or laptop instead of the class virtual machine, the labs might just work, but note that we don't have the energy or expertise to debug any problems you might have.
In a VirtualBox terminal, clone your repo by typing the following:
$ git clone https://github.com/nyu-ds/<YourGithubUsername>-golabs-2016.git golabs $ cd <YourGithubUsername>-golabs-2016You will see that a directory named <YourGithubUsername>-golabs-2016 has been created under your home directory. This is the git repo for your lab assignments throughout the semester.
Type git remote add to add the upstream repo, and git remote -v to check that golabs-2016 is indeed an upstream for your own lab repo.
$ git remote add upstream https://github.com/nyu-ds/golabs-2016.git $ git remote -v origin git@github.com:nyu-ds/golabs-2016.git (fetch) origin git@github.com:nyu-ds/golabs-2016.git (push) upstream https://github.com/nyu-ds/golabs-2016.git (fetch) upstream https://github.com/nyu-ds/golabs-2016.git (push)
Immediately, you should check if the upstream golabs-2016 repo has additional changes not present in your repo. You can check for and merge in those changes by typing:
$ git fetch upstream $ git merge upstream/masterYou should perform the above two steps periodically to ensure that you've got the latest lab code. We will also remind you to fetch upstream on Piazza if we make changes/bug-fixes to the labs.
$ git commit -am "saving my changes" $ git push originNote that whenever you add a new file, you need to manually tell git to ``track it''. Otherwise, the file will not be committed by git commit. Make git track a new file by typing:
$ git add <my-new-file>After you've pushed your changes with git push, they are safely stored on github.com. Even if your laptop catches on fire in the future, those pushed changes can still be retrieved. However, you must remember that git commit by itself does not save your changes on github.com (it only saves your changes locally). So, don't forget to type that git push origin.
To see if your local repo is up-to-date with your origin repo on github.com and vice versa, type
$ git status
$ git commit -am "saving all my changes and handing in" $ git push originWe will fetching your lab files from Github.com at the specified deadline and grade them.