The purpose of this assignment is to start familiarizing yourselves with version control with Git and GitHub. It will build on the git demos in class as well as the TA tutorials from week 1 (intro shell/bash) and week 2 (merge conflicts). Specifically, we will create a toy repository with a merge conflict and learn how to resolve it. A merge conflict occurs when Git is unable to automatically determine how to incorporate new changes. This can can occur when two branches modify the same line, or when a file is deleted when someone else is changing it. You can read more about merge conflicts here: Git merge conflicts.
Follow the instructions listed below. You will be graded for completion.
Create a new public repository on GitHub.com named learning-about-version-control
. Make sure the repository:
README
that has a header that says “Learning about Version Control” and has your name listed as the author.Clone your learning-about-version-control
repository to your local computer.
Create and resolve a merge conflict 😱!
README
, and the try to push the file so that you create the merge conflict.Create and accept a pull request!
opinions
and switch to that branch.README
so that you add at least one sentence about what you like most about version control, and add at least one sentence about what you find most challenging/confusing/frustrating about version control (we all have opinions on this one…). Add and commit your changes to local version control.README
that you made on the opinions
branch to the remote repository on GitHub.com.opinions
branch into the main
branch.You will submit a PDF to Gradescope for individual assignment 1 that includes:
https://github.com/<YOURUSERNAME>/learning-about-version-control/commits/main
)This assignment will be graded for completion as follows:
Grade | Description |
---|---|
100% | GitHub history (check under pull request tab in repo) indicates a successfully merged pull request from opinions into main, clearly demonstrated solving the merge conflict in screenshot and well explained why it is useful to work in a branch-pull-request workflow |
-25% | GitHub history (check under pull request tab in repo) does not indicate a successfully merged pull request from opinions into main |
-25% | Did not clearly demonstrate solving the merge conflict in screenshot. |
-25% | Did not well explain why it is useful to work in a branch-pull-request workflow. |
-100% | No repository or attempt |