You will be submitting your answers as text file on Autolab. You can download the answer template here.
Is git distributed or centralized? Justify your answer by briefly explaining the difference.
Explain why the file dino-story.txt
appears in both the staging area and working directory in the image below.
HEAD~
refer to?
(You can just give the short hash).
volcano~2
refer to?
You will answer the questions in this question by creating and forking GitHub repositories. Please be sure to record their
URLs in your midterm.txt
so we can grade them!
Create a new GitHub repository (click here for help) called branch-practice
.
SUPER IMPORTANT: Make the repository Public and do NOT initialize it with a README.
Create a new repository on your computer (hint: git init
) and set up your new GitHub repo as a remote called origin
. Example:
$ git remote add origin https://github.com/aperley/branch-practice.git
.
Now, use Git commands to replicate the repository structure shown below in your own repo. Make sure all three branches end up in the right spot.
Push ALL THREE BRANCHES to your remote on GitHub. Your repo on GitHub will show all 6 commits and 3 branches if you get this right.
Fork the dino-story-midterm repo (click here for help) and clone it to your computer. Complete the following steps:
master
branch.
volcano
branch into master. In the merge commit message, state whether or not this merge caused conflicts and why.
teresa-sucks
branch into master. In the merge commit message, state whether or not this merge caused conflicts and why.
master
branch to your fork on GitHub. Don't forget this!