[Step 12] Merge a pull request - Yellow-Team-Millerslab/GitPlayground GitHub Wiki
This section is more for project administrators.
To merge a pull request, you can do it on Github or you can do it locally when there are too mnay conflicts.
To do it locally, it requires to set up repo config.
-
In SourceTree, click
Repository
on menu, and clickRepository Settings
-
In the popup, click
Edit Config File...
-
Add a line like below in
[remote "Origin"]
section reffetch = +refs/heads/*:refs/remotes/origin/pr/*
-
Click Fetch, it will show a
pr
branch underREMOTES
\origin
-
Double click the branch under
pr
and it will popup a modal forCheckout
-
In VS2017
Team Explorer
, Switch back tomaster
branch, right click on that pull request. (which is treated as a branch) -
Click
Merge From
, from here it works just like merging a branch. -
After merge and push out the commit, Github will close the pull request automatically