-
Created a new repository on GitHub.
-
Followed the instructions to connect it to a local repo
git init ... git push-u origin master. -
Implemented the logic for getSum function and pushed to the repo.
-
Created 2 branches
averageandsumvia the commandgit branch <name>. -
Checked out to the
averagebranch. -
Implemented the getAverage function.
-
Pushed it to the remote repo using the command
git push --set-upstream origin average. -
Did the same for the
minbranch and getMin function. -
Now we have 3 branches as seen in the picture.
-
Checked out to the
mainbranch and merged theaveragebranch with it via the commandgit merge average. -
Pushed the new changes to GitHub via the command
git push. -
Repeated the same steps for merging the
minbranch. -
A conflict happened, so I opened vim to solve it via the command
vim main.cpp. -
After resolving the conflict, I added the files, committed and pushed.
-
All is done, I just added the report file to the repo’s README.md.
⚠️ The PDF didn’t say anything about deleting the
average&minbranches, so I left them in case you needed to check them.
