- INDIVIDUAL ASSIGNMENT
- Deadline: Sept-9th 11:59PM
- How to submit: For each empty grey box, please provide with an answer to the item in a document. Do the following to submit the Part 1 of your assignment:
- Create a new repository under your GitHub account called INF502;
- create a file called "Assignment1.md" and paste your answers there (tip: click on "Raw" at the right-top of this file to get the markdown source);
- invite me to see your new repository. This will allow you to keep a private repository that
For Part 2 the pull request creation is the submission.
- Value: Part of homework grade
This assignment is composed of two parts.
- Part 1 consists of executing a sequence of commands and giving explanations about the commands you have to run. For each item in the assignment, please provide appropriate explanation and/or the details requested.
- Part 2 consists of creating a Markdown file on a fork of this course and creating a pull request towards this repo.
To conduct this, you will have to download handson.zip and unzip it. handson folder is a git repository. Using the commandline change the directory to "handson/"
The empty boxes
represent the content you need to fill and submit via BBlearn as a document (PDF or Word)
-
Draw a diagram of the commits and branches in repository.
- Use
git branch
to list the branches in this repository. - Use
git checkout
to explore each branch. - Use
git log --decorate
to explore the structure of commits.
- Use
- Try
git log --graph --all
to see the commit tree. What do you see?
- Use
git diff BRANCH_NAME
to view the differences from a branch and the current branch. Summarize the difference from master to the other branch.
- Write a command sequence to merge the non-master branch into
master
- Write a command (or sequence) to (i) create a new branch called
math
(from themaster
) and (ii) change to this branch
- Edit B.py adding the following source code below the content you have there
print 'I know math, look:'
print 2+2
- Write a command (or sequence) to commit your changes
- Change back to the
master
branch and change B.py adding the following source code (commit your change tomaster
):
print 'hello world!'
- Write a command sequence to merge the
math
branch intomaster
and describe what happened
- Write a set of commands to abort the merge
- Now repeat item 10, but proceed with the manual merge (Editing B.java). All implemented methods are needed. Explain your procedure
- Write a command (or set of commands) to proceed with the merge and make
master
branch up-to-date
The goal of this assignment is to put you in touch with the fork-pullrequest process, with an extra of dealing a little bit with Markdown. To learn more about Markdown click here.
You must fork this repo and submit a pull request back
- Into the students folder, create a file called LASTNAME_FIRSTNAME.md (please change LASTNAME_FIRSTNAME for your actual last and first names).
- Use Markdown to structure the following information about the last paper you've read (you can structure your markdown the way you want):
- Title
- Venue (journal name/conference)
- Number of pages
- 3 outcomes of the paper
- link to the paper online
-
Send your file back to this repository until creating a pull request (your pull request needs to appear here.
-
In the document that you will submit to BBLearn, report your experience of making this submission, including the steps followed, commands used, and hurdles faced.