I am trying to understand what a process that uses pull requests on a self-hosted git repo would look like (if it is even possible).
Say I have two branches, feature
and master
. A bunch of work is completed on the feature
branch, and I want to submit a pull request for the changes to be reviewed before being merged into the master
branch. As far as I understand it, the steps would be something like:
git push feature
(developer pushes commits on feature
branch to remote repo)
git request-pull <start commit> feature <end commit>
developer creates the pull request. But I'm not entirely sure whether <url>
should refer to master
or feature
branch?
Reviewer would then retrieve the pull request somehow, and if they are happy with it then they would merge the feature
branch into master
with git merge feature
Is such a workflow possible with self-hosted git? I haven't really used the likes of Github but I know they have a lot of GUI features to manage this sort of thing.
Summary of questions:
- what should
<url>
be in the git request-pull command? - how does a reviewer receive the pull request?
- is there a way to view a history of pull requests?
- is there a way to have someone specific review the pull request?