Lab4: Practice git remotes and merges
In this post, I will describe the journey of lab 4 which practices git remotes and merges. Here is the instruction of the lab4. The purpose of this lab is to practice the following:
- creating branches to work on new features and fix bugs
- working on code changes in another project you didn't write
- using git remote and sharing commits with git push, git pull, and git fetch
- using git merge and doing practice merges
- fixing merge conflicts
The additional feature I need to add to the existing project was to ignore URL. For example, if I enter 'tool-name --ignore ignore-url.txt test.html', the tool will check all the URLs inside the test.html file without the URLs inside the ignore-url.txt file. To begin this lab, I look around the whole the projects on the release 0.1 list and picked up one project.
- Tool name: Webpage-status-checking-tool
- Author (GitHub username): tuidamon
- Filed issue: https://github.com/tuidamon/Webpage-status-checking-tool/issues/9
- Pull request: https://github.com/tuidamon/Webpage-status-checking-tool/pull/10
The process was similar to previous labs. I forked the repository, created a new branch named issue-9, wrote the code to add a new feature, pushed the commit into the new branch, and pulled the request. I asked the author to assign me to this issue and review my code October 13th but I did not get any responses. I pulled request to his repository on October 16th and am waiting for his review.
While I am working on the lab4 using the project named Webpage-status-checking-tool, I got an issue with the additional feature on my project. I assigned the issue to him so he can work on this issue. He pulled the request and I reviewed the commits he pushed.
- My tool name: url-fi
- The author who filed an issue (GitHub username): tianlangwu
- Filed issue: https://github.com/hyunjiLeeTech/URL-FI/issues/12
- Pull request: https://github.com/hyunjiLeeTech/URL-FI/pull/13
While I am reviewing his commit, I can practice using git remote and sharing commits with git push, git pull, and git fetch. Before I learned these, I just forked the repository somebody forked my repository to review the code. When I used git remote to get the commits, it makes the work much easier! It is faster to get code and easier to compare the previous and current codes. It was amazing!
I kept communicating with tianlangwu (GitHub username) for the new feature (ignore argument) because his code made some bugs. We talked about these for 2 days and now it works! I did 'git pull tianlangwe issue-12' to merge his code and resolved the conflict. Now he is the contributer of my project. Thank you for adding a new feature on my project, tianlangwu!
- Merged commit: https://github.com/hyunjiLeeTech/URL-FI/commit/e8ea52339c5d8c63b9a60a6bc9f5b3093741ef13
Comments
Post a Comment