$25
• Use git to manage changes to a repository of code.
• Use GitHub to host a repository
Requirements
Part A – Basics of Using GitHub
Create a GitHub account. Create a repository for storing the solution to Assignment #2 (it is posted underneath Assignment #2 on Avenue to Learn). The solution file should be modified to contain a comment at the first line of the solution file with your name. You do not have to provide any other information; for example you may not want to post your student ID publicly (I would not recommend this).
Provide a link to your GitHub repository in a plaintext file called as2_repos.txt.
Part B – Using Git and Creating a Pull Request
Using your GitHub account, fork the repository located at:
https://github.com/cs1xc3demo/lettercounter/
Clone the repository on your local machine (i.e. your account on pascal server).
If you run git log --all --graph there will be two branches from the remote repository, origin/main and origin/feature. Attempt to merge origin/feature into origin/main. Resolve any conflict(s) that result and run git commit to commit the resolution.
Important: when you resolve conflicts, make sure that the changes made to BOTH branches are reflected in your new commit to the repository. It’s not enough that you are able to commit a merged version of the branches, the purpose of the changes made on both branches needs to be reflected in your commit. Look at the commit logs to see what was intended by each change. You may need to modify more than the code identified by any conflict(s) in order to ensure the purpose of each change is correctly reflected in in the merge.
Your commit log message(s) should be descriptive of what was changed.
Once you have made the merge, push your local repository to the remote repository on your GitHub account (the one that you forked from the repository on cs1xc3demo