{"id":66,"date":"2021-06-07T06:22:12","date_gmt":"2021-06-07T06:22:12","guid":{"rendered":"https:\/\/blogs.scummvm.org\/twan\/?p=66"},"modified":"2021-06-07T10:57:45","modified_gmt":"2021-06-07T10:57:45","slug":"how-to-open-and-pull-request-push-and-commit-code-to-scummvm-200-beginners-guide","status":"publish","type":"post","link":"https:\/\/blogs.scummvm.org\/twan\/2021\/06\/07\/how-to-open-and-pull-request-push-and-commit-code-to-scummvm-200-beginners-guide\/","title":{"rendered":"How to Open a Pull Request &amp; Push and Commit Code to ScummVM"},"content":{"rendered":"\n<p>I&#8217;ve open a brand new Github account just to learn how to.<\/p>\n\n\n\n<p>Not recommended for long term. I do recall sev saying something like as a dev you should use command line and I do agree with that. <\/p>\n\n\n\n<p>Well, I wanted to do everything with terminal commands, but was unsuccessful. I couldn&#8217;t find satisfying answers online before I decided it was too much time. I may find out how, later. <\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Go to Scummvm&#8217;s GitHub repository, and click &#8220;fork&#8221;  on the top right corner.<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"518\" src=\"https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-1.55.58-PM-1024x518.png\" alt=\"\" class=\"wp-image-67\" srcset=\"https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-1.55.58-PM-1024x518.png 1024w, https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-1.55.58-PM-300x152.png 300w, https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-1.55.58-PM-768x388.png 768w, https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-1.55.58-PM-1536x777.png 1536w, https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-1.55.58-PM.png 1622w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"448\" src=\"https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-1.58.19-PM-1024x448.png\" alt=\"\" class=\"wp-image-70\" srcset=\"https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-1.58.19-PM-1024x448.png 1024w, https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-1.58.19-PM-300x131.png 300w, https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-1.58.19-PM-768x336.png 768w, https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-1.58.19-PM-1536x672.png 1536w, https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-1.58.19-PM-2048x896.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>2. Now you should see a brand new page, <code>yourGithubUserName \/ scummvm<\/code><br>What we basically did in the last step, is to clone all the code from ScummVm to our own repository<br>A repository, is a lot like a folder that you keep code. They are grouped together, because they share a similar purpose of use.  <br>What ever you edit in this repository is yours, and will not be updated to scummvm<br>But it can be convenient if you would want to update code from other people&#8217;s contributions to scummvm. You can click &#8220;fetch upstream&#8221; right below the green download code button.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"515\" src=\"https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-2.00.20-PM-1024x515.png\" alt=\"\" class=\"wp-image-72\" srcset=\"https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-2.00.20-PM-1024x515.png 1024w, https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-2.00.20-PM-300x151.png 300w, https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-2.00.20-PM-768x387.png 768w, https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-2.00.20-PM-1536x773.png 1536w, https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-2.00.20-PM.png 1615w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>If you care to go to your profile, you would see a new repository on it (scummvm)<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"463\" src=\"https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-2.02.33-PM-1024x463.png\" alt=\"\" class=\"wp-image-73\" srcset=\"https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-2.02.33-PM-1024x463.png 1024w, https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-2.02.33-PM-300x136.png 300w, https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-2.02.33-PM-768x347.png 768w, https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-2.02.33-PM-1536x695.png 1536w, https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-2.02.33-PM.png 1623w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Now let&#8217;s get to the point. <\/p>\n\n\n\n<p>3. Make a file change<\/p>\n\n\n\n<p>Okay, I must admit that I&#8217;m getting to the part that I am positive that is not optimal, but it works. <\/p>\n\n\n\n<p>First make sure you have a compiling copy of code that you would like to be added to Github.<\/p>\n\n\n\n<p>Go to the <code>yourGithubUserName \/ scummvm <\/code>page, and select a file you want to make alterations, and make the change by clicking the pencil icon <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"502\" src=\"https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-2.09.38-PM-1024x502.png\" alt=\"\" class=\"wp-image-74\" srcset=\"https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-2.09.38-PM-1024x502.png 1024w, https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-2.09.38-PM-300x147.png 300w, https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-2.09.38-PM-768x376.png 768w, https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-2.09.38-PM-1536x752.png 1536w, https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-2.09.38-PM.png 1619w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Replace the code with your copy. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"526\" src=\"https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-2.11.27-PM-1024x526.png\" alt=\"\" class=\"wp-image-76\" srcset=\"https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-2.11.27-PM-1024x526.png 1024w, https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-2.11.27-PM-300x154.png 300w, https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-2.11.27-PM-768x394.png 768w, https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-2.11.27-PM-1536x789.png 1536w, https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-2.11.27-PM.png 1610w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>A very handy tool is the &#8220;Preview changes&#8221; tab. It kindly tells you what changes you have made, in case you made unintended changes. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"419\" src=\"https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-2.12.29-PM-1024x419.png\" alt=\"\" class=\"wp-image-77\" srcset=\"https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-2.12.29-PM-1024x419.png 1024w, https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-2.12.29-PM-300x123.png 300w, https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-2.12.29-PM-768x314.png 768w, https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-2.12.29-PM-1536x629.png 1536w, https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-2.12.29-PM.png 1605w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>4. Type commit message<\/p>\n\n\n\n<p>Here&#8217;s the important part. It&#8217;s time to come up with a commit message. <br>I have yet found a way to change the commit message, so for what I know, if the message is wrong, then it&#8217;s gonna get hard. <\/p>\n\n\n\n<p>DON&#8217;T PRESS commit changes yet!!!<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"492\" src=\"https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-2.15.39-PM-1024x492.png\" alt=\"\" class=\"wp-image-78\" srcset=\"https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-2.15.39-PM-1024x492.png 1024w, https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-2.15.39-PM-300x144.png 300w, https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-2.15.39-PM-768x369.png 768w, https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-2.15.39-PM-1536x737.png 1536w, https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-2.15.39-PM.png 1606w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>5. Create new branch<\/p>\n\n\n\n<p>Select &#8220;Create a new branch for this commit&#8230;.&#8221;, and name it with something relevant<\/p>\n\n\n\n<p>Great! Now go ahead and propose changes<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"498\" src=\"https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-2.16.35-PM-1024x498.png\" alt=\"\" class=\"wp-image-79\" srcset=\"https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-2.16.35-PM-1024x498.png 1024w, https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-2.16.35-PM-300x146.png 300w, https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-2.16.35-PM-768x374.png 768w, https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-2.16.35-PM-1536x747.png 1536w, https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-2.16.35-PM.png 1622w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>You will be directed to this page. Not bad ehh!<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"526\" src=\"https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-2.17.45-PM-1024x526.png\" alt=\"\" class=\"wp-image-80\" srcset=\"https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-2.17.45-PM-1024x526.png 1024w, https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-2.17.45-PM-300x154.png 300w, https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-2.17.45-PM-768x395.png 768w, https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-2.17.45-PM-1536x789.png 1536w, https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-2.17.45-PM.png 1613w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>6. Open Pull Request<\/p>\n\n\n\n<p>However, that is not you are looking for. <\/p>\n\n\n\n<p>Go back to scummvm \/ scummvm, and you will see this. Click Compare &amp; pull request<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"517\" src=\"https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-2.19.52-PM-1024x517.png\" alt=\"\" class=\"wp-image-81\" srcset=\"https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-2.19.52-PM-1024x517.png 1024w, https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-2.19.52-PM-300x151.png 300w, https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-2.19.52-PM-768x388.png 768w, https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-2.19.52-PM-1536x776.png 1536w, https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-2.19.52-PM.png 1612w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Be sure to view the contributing guidelines. The rest is amendable and thus less stressful. Happy coding. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"512\" src=\"https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-2.20.49-PM-1024x512.png\" alt=\"\" class=\"wp-image-82\" srcset=\"https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-2.20.49-PM-1024x512.png 1024w, https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-2.20.49-PM-300x150.png 300w, https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-2.20.49-PM-768x384.png 768w, https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-2.20.49-PM-1536x768.png 1536w, https:\/\/blogs.scummvm.org\/twan\/wp-content\/uploads\/sites\/9\/2021\/06\/Screen-Shot-2021-06-07-at-2.20.49-PM.png 1627w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve open a brand new Github account just to learn how to. Not recommended for long term. I do recall sev saying something like as a dev you should use command line and I do agree with that. Well, I wanted to do everything with terminal commands, but was unsuccessful. I couldn&#8217;t find satisfying answers &#8230; <a title=\"How to Open a Pull Request &amp; Push and Commit Code to ScummVM\" class=\"read-more\" href=\"https:\/\/blogs.scummvm.org\/twan\/2021\/06\/07\/how-to-open-and-pull-request-push-and-commit-code-to-scummvm-200-beginners-guide\/\">Read more<span class=\"screen-reader-text\">How to Open a Pull Request &amp; Push and Commit Code to ScummVM<\/span><\/a><\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-66","post","type-post","status-publish","format-standard","hentry","category-moreorganized"],"_links":{"self":[{"href":"https:\/\/blogs.scummvm.org\/twan\/wp-json\/wp\/v2\/posts\/66","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.scummvm.org\/twan\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.scummvm.org\/twan\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.scummvm.org\/twan\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.scummvm.org\/twan\/wp-json\/wp\/v2\/comments?post=66"}],"version-history":[{"count":6,"href":"https:\/\/blogs.scummvm.org\/twan\/wp-json\/wp\/v2\/posts\/66\/revisions"}],"predecessor-version":[{"id":92,"href":"https:\/\/blogs.scummvm.org\/twan\/wp-json\/wp\/v2\/posts\/66\/revisions\/92"}],"wp:attachment":[{"href":"https:\/\/blogs.scummvm.org\/twan\/wp-json\/wp\/v2\/media?parent=66"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.scummvm.org\/twan\/wp-json\/wp\/v2\/categories?post=66"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.scummvm.org\/twan\/wp-json\/wp\/v2\/tags?post=66"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}