What if you want to add a change to the new branch you want to merge before merging the pull request to our main branch?
A : just go back to Windows to make changes to the files in the new branch and save them, then open the CMD console to do the git command.
When we first started using Git and GitHub, it was recommended that you do not make any changes to the files on the GitHub site, but instead perform the desired modifications and other work on the local computer copy.
This helps us to effectively avoid file conflicts. In fact, we just make the changes on the local computer copy and this project is my one-person maintenance, then my local code will always be in sync with the code above GitHub.
However , if you are collaborating with others in a team, someone will push a change to the remote branch while I am working, and this change is the same file as the one we are making on the local computer, which can cause file conflicts.
This is a fairly common problem. So we need to practice creating and repairing conflicts.
Demonstrates the intent to create a file conflict by committing changes on the GitHub Web site and committing changes on the local computer copy.
As shown in the following:
Open a local file for conflict merging.
How do I resolve file conflicts with Git in Windows?