In this https://github.com/GeekHaven/APK-Month-FOSS Repository, create a [github-username].txt file inside Task1 folder and answer the questions asked there.
Simulate and resolve a merge conflict by making conflicting changes to the same line in different branches.
enroll.txt in Task2 folder
-
On the
main
branch, make a change to the first line ofenroll.txt
and commit it.
(Example: Add your name or a unique string) -
Create a new branch from
main
. -
In this new branch, edit the same first line of
enroll.txt
but with a different change, and commit it. -
Switch back to
main
and merge the new branch into it. -
A merge conflict should occur. Resolve the conflict manually.
-
Commit the merge after resolving the conflict.
-
Make a pull request
-
The repository should contain 3 commits:
- Initial change on
main
- Conflicting change on the new branch
- Merge commit after resolving the conflict
- Initial change on
-
The final version of
enroll.txt
should reflect the resolved content.