From the course: Git Essential Training

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Create and merge a pull request

Create and merge a pull request

From the course: Git Essential Training

Create and merge a pull request

- [Instructor] In this video, we will see how we can create a pull request. A pull request is what we use when we want to merge two branches. Often this will be a branch where we created a feature and a main branch. Locally, you would just merge the branch without a pull request, but in larger projects, a pull request is the better way. This is where team members can review your code, give feedback, and approve the changes. Once the pull request is complete, your code get merged into the main branch. At that point, it's best practice to delete the old branch as you don't need it anymore. Keeping it could only cause confusion. Let's do it in our repository. In our repository on GitHub, we go to Pull requests. Here we can create a new pull request or use the button if we have one to use. Let's select New pull request. I can now compare the changes between two branches. The base branch here is main and I want to compare logfolder. I can now see all the changes on this page. I can also…

Contents