Skip to content

Basic question about 'merge' - I think #21589

Discussion options

You must be logged in to vote

That’s correct. That is why you would also want to be making your changes in your own branch. Here is the scenario:

You are working in your branch.
Your coworker is working in their branch.
Your coworker merges their code to the main branch. At this point, you are out of sync with the main branch.
You “should” do a pull, to pull in the changes from the main branch to your branch. That will cause a conflict for you that you can resolve on your branch.
When ready, you can then push back to the main branch. You may still get a conflict if you change your workers file in your branch, which then you can fix before merging to the main branch.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants