ahandrewh teaches IAT-339web design & development

Git exercise (due June 10)

Introduction

This exercise is required.

In preparation for your next project you will be practicing working with git for this exercise.

Instructions

For this exercise there are no pre-built files but we do recommend you work with reference material on git available to you, such as this week's reading or the recommended resources.

To start this week's exercise, please start a local repository in an empty folder, and then follow the steps below:

  1. Create a new file entitled .gitignore in the repository and place .DS_Store in the first line of the file to set up git to ignore all files called .DS_Store (these are files often generated by the Mac OS).
  2. Stage and commit the changes with a meaningful commit message.
  3. Edit the readme.md file in the repository to include an explanation of your repository.
  4. Stage and commit the changes with a meaningful commit message (you may be sensing a theme).
  5. Create a new branch entitled addingIndex.
  6. Create a new file entitled index.html in the repository using the linked bare-minimum HTML5 template.
  7. Switch back to the master branch.
  8. Merge the addingIndex branch into the master branch.
  9. Edit the readme.md file in the repository to include any references for friends or materials access to help in completing the exercise.

Once done the steps above, you will be creating a new remote repository and then pushing your changes to the remote repository.

  1. On June 3 you should receive an email to set up an account on our course Gitlab instance at https://toolbox.iat.sfu.ca/. If you do not receive the email, please email Andrew so he can send you the email again.
  2. In Gitlab, create a 'New Project' using the blank project option. You will need the address of the project — something similar to https://toolbox.iat.sfu.ca/username/projectname to connect it.
  3. Link your local repository to the remote one and push your changes to the remote repository. You will know it has worked if you can see your changes on Gitlab (https://toolbox.iat.sfu.ca/).
  4. Submit the URL to the Canvas assignment.

Your submission is due before lecture on June 10.

Exercise rules reminder

Please remember that the exercise rules still apply:

  1. You can use online resources, course materials, your TA, and lab-mates for support. This being said, others are not allowed to do your work for you. Also, if you are drawing from online resources, course materials, your TA or peers, you must;
  2. Cite any knowledge that is not yours in a comment in the code. The internet is a huge repository of information and you are welcome to use it, but you must let us know when something does not originate from your own knowledge.
  3. If work has been copied without citation the exercise grade will be zero. Please make sure to include comments indicating where you had assistance or learned.