How Do I Merge a Branch? #28250
-
|
Hey I'm currently working on a collaborative project with my friend and we are having a bit of trouble understanding how to merge a GitHub branch. What is a pull request? How do I resolve conflicts? Really I'm just looking for an overview of the process on how a correct merge is done. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Okay, so first before you merge your branch, commit all your recent changes. Then, on the web version of Github, make a pull request from the branch you're wanting to merge. In the pull request select what you want to merge your branch to, main or an other branch. It's good practice to write a good description stating how the branch is going to change the project. After that click on "Create Pull Request". If you're working alone and there are no conflicts then you can go ahead and click on merge, but it is still good to review all the changes you've made in the "files changed" tab before you merge. After that you have successfully merged to main/anotherBranch!! |
Beta Was this translation helpful? Give feedback.
Okay, so first before you merge your branch, commit all your recent changes. Then, on the web version of Github, make a pull request from the branch you're wanting to merge.
In the pull request select what you want to merge your branch to, main or an other branch. It's good practice to write a good description stating how the branch is going to change the project. After that click on "Create Pull Request". If you're working alone and there are no conflicts then you can go ahead and click on merge, but it is still good to review all the changes you've made in the "files changed" tab before you merge.
If you are working with someone else and you are not an admin of the repository you may ne…