{"id":7941,"date":"2020-08-04T15:10:59","date_gmt":"2020-08-04T15:10:59","guid":{"rendered":"http:\/\/www.max-sperling.bplaced.net\/?p=7941"},"modified":"2024-05-08T09:54:04","modified_gmt":"2024-05-08T09:54:04","slug":"pullmerge-request","status":"publish","type":"post","link":"http:\/\/www.max-sperling.bplaced.net\/?p=7941","title":{"rendered":"Merge \/ Pull request (Git)"},"content":{"rendered":"<p><strong>Is it a git feature?<\/strong><br \/>\nFirst of all it isn&#8217;t a feature from git itself it&#8217;s provided by tools like Github and Gitlab.<\/p>\n<hr>\n<p><strong>What&#8217;s the reason?<\/strong><br \/>\nThe reason for that feature is to increase the quality assurance of the repository.<\/p>\n<hr>\n<p><strong>How does it work?<\/strong><br \/>\nIf contributors want to change something in a repository, they don&#8217;t have any right to push, they need to fork it first. Then they can create a branch on that fork with their changes and afterwards create a pull\/merge request for it. Now the maintainers, who have the right to push, can discuss the changes and possible merge the changes onto the parent branch in the origin repository.<\/p>\n<pre>\r\nGit Server\r\n   |-------------| --- 1) Fork Repo ----> |-------------| ---------|\r\n   | Origin Repo |                        | Forked Repo |          |\r\n   |-------------| <-- 6) Pull Request -- |-------------| <------------|\r\n                                                                   |   |\r\n                                                                   |   |\r\nLocal Machine (Contributor)                                        |   |\r\n   |<-- 3) Create Branch ---- |-------------| <-- 2) Clone Repo ---|   |\r\n   |                          | Cloned Repo |                          |\r\n   |--- 4) Commit Changes --> |-------------| --- 5) Push Branch ------|\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Is it a git feature? First of all it isn&#8217;t a feature from git itself it&#8217;s provided by tools like<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false},"categories":[24],"tags":[],"_links":{"self":[{"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/posts\/7941"}],"collection":[{"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7941"}],"version-history":[{"count":4,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/posts\/7941\/revisions"}],"predecessor-version":[{"id":17572,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/posts\/7941\/revisions\/17572"}],"wp:attachment":[{"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7941"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7941"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7941"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}