Software Engineering

Homework 4: Working with Git and GitHub

For this homework you will practice the version control and collaboration features of Git and GitHub with your teammates.

In particular, you will be replicating the steps performed in three demonstration videos as follows.

Detailed Instructions

Each teammate must individually do the following steps.

Part 1: Working with a Local Repo

  1. In your VM, start typescript recording your session as follows.
    1. IMPORTANT! cd into the workspace folder. This is the folder where your typescript will be saved. You do NOT want this file saving to your git-demo repo folder.
    2. Start a typescript recording using the following command.
      • script hw04-typescript-1.txt
    3. Launch a Bash login shell (needed for RVM to work) using the following command.
      • bash --login
  2. Replicate the steps in the demo video on working with local repos.
  3. End the typescript recording as follows.
    1. Exit the Bash shell using this command.
      • exit
    2. Exit the typescript using this command.
      • exit
  4. Upload your typescript to the appropriate eCourseware dropbox.

Part 2: Working with Branches

  1. In your VM, start typescript recording your session as follows.
    1. IMPORTANT! cd into the workspace folder. Remember, you do NOT want this file saving to your git-demo repo folder.
    2. Start a typescript recording using the following command.
      • script hw04-typescript-2.txt
    3. Launch a Bash login shell (needed for RVM to work) using the following command.
      • bash --login
  2. Replicate the steps in the demo video on working with branches.
  3. End the typescript recording as follows.
    1. Exit the Bash shell using this command.
      • exit
    2. Exit the typescript using this command.
      • exit
  4. Upload your typescript to the appropriate eCourseware dropbox.

Part 3: Working with a Remote Repo

  1. In your VM, start typescript recording your session as follows.
    1. IMPORTANT! cd into the workspace folder. Remember, you do NOT want this file saving to your git-demo repo folder.
    2. Start a typescript recording using the following command.
      • script hw04-typescript-3.txt
    3. Launch a Bash login shell (needed for RVM to work) using the following command.
      • bash --login
  2. Replicate the steps in the demo video on working with remote repos.
    • Additional instructions: When you replicate these steps, you must perform only the steps that I perform and that Alice performs. One of your teammates must perform the steps of Bob on their computer. Use your GitHub user account to house the repo. It’s OK for it to be public. Your teammate’s steps as Bob need not be recorded. Note that a good arrangement here would be for a teammate to serve as Bob for you, and in exchange, you serve as Bob for them.
  3. End the typescript recording as follows.
    1. Exit the Bash shell using this command.
      • exit
    2. Exit the typescript using this command.
      • exit
  4. Upload your typescript to the appropriate eCourseware dropbox.

Once you have uploaded all three typescripts, your homework submission is complete.

© Scott D. Fleming 2018 • Made with GitHub Pages and Markdown