{"id":5646434,"date":"2022-07-11T07:54:37","date_gmt":"2022-07-11T11:54:37","guid":{"rendered":"https:\/\/lightning.ai\/pages\/?p=5646434"},"modified":"2022-09-10T11:11:10","modified_gmt":"2022-09-10T15:11:10","slug":"creating-a-pull-request-on-github","status":"publish","type":"post","link":"https:\/\/lightning.ai\/pages\/education\/lightning-bits\/creating-a-pull-request-on-github\/","title":{"rendered":"EP 08: Creating a Pull Request on GitHub"},"content":{"rendered":"<p>In this Lightning Bits episode, William and Sebastian talk about how to share your code on GitHub and collaborate with others on open-source projects. They discuss how to create an account on GitHub and how to submit your first pull request. Watch the video, or continue reading below.<\/p>\n<p><iframe loading=\"lazy\" title=\"YouTube video player\" src=\"https:\/\/www.youtube.com\/embed\/_0X_dljzr5E\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<h2>GitHub Pull Request<\/h2>\n<p>In the previous episodes, we covered the basic concepts and commands behind Git for version control. These episodes are not mandatory for creating projects on GitHub, but we recommend you check them out as well:<\/p>\n<ul>\n<li><span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/lightning.ai\/pages\/blog\/version-control-using-git\/\" target=\"_blank\" rel=\"nofollow noopener\"><u>Ep 06: Version Control for Code Using Git<\/u><\/a><\/span><\/li>\n<li><span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/lightning.ai\/pages\/blog\/git-branching\/\" target=\"_blank\" rel=\"nofollow noopener\"><u>Ep 07: Managing Code Projects with Git Branching<\/u><\/a><\/span><\/li>\n<\/ul>\n<h3>Hosting your Git Projects on GitHub<\/h3>\n<p>As we have seen in previous episodes, Git is a program that helps you with managing your code.\u00a0<span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/github.com\/\"><u>GitHub<\/u><\/a><\/span>, as the name implies, is a &#8220;hub&#8221; for hosting your projects (maintained via Git version control) on the web. You can think of GitHub as a webserver and a user interface for sharing your code projects.<\/p>\n<p>Note that using GitHub is entirely free, however, there is a paid tier with additional features such as private repositories if needed.<\/p>\n<p>There are also other related services such as BitBucket and GitLab. However, GitHub is by far the most popular choice among developers. We highly recommend using GitHub because most of the open source community is using it, and thus it makes it easier to collaborate with others.<\/p>\n<h3>Creating GitHub Projects<\/h3>\n<p>First, if you haven&#8217;t done so, yet, you can sign up to GitHub and create an account here:\u00a0<span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/github.com\/\"><u>https:\/\/github.com<\/u><\/a><\/span> (note that this is entirely free).<\/p>\n<p>By the way, if you are interested, you can check out William&#8217;s and Sebastian&#8217;s GitHub repositories here:<\/p>\n<ul>\n<li>Sebastian:\u00a0<span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/github.com\/rasbt\"><u>https:\/\/github.com\/rasbt<\/u><\/a><\/span><\/li>\n<li>William:\u00a0<span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/github.com\/williamfalcon\"><u>https:\/\/github.com\/williamfalcon<\/u><\/a><\/span><\/li>\n<\/ul>\n<p>Once you have a GitHub profile, you can create a new repository from the upper right corner:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-5646435 size-full\" src=\"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/new-repository-on-github-scaled.jpg\" alt=\"Create a new repository on GitHub\" width=\"2560\" height=\"1773\" srcset=\"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/new-repository-on-github-scaled.jpg 2560w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/new-repository-on-github-300x208.jpg 300w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/new-repository-on-github-1024x709.jpg 1024w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/new-repository-on-github-768x532.jpg 768w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/new-repository-on-github-1536x1064.jpg 1536w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/new-repository-on-github-2048x1419.jpg 2048w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/new-repository-on-github-200x140.jpg 200w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/new-repository-on-github-1920x1330.jpg 1920w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/new-repository-on-github-600x416.jpg 600w\" sizes=\"(max-width: 2560px) 100vw, 2560px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-5646436 size-full\" src=\"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/new-github-repository-details-scaled.jpg\" alt=\"New GitHub repository details\" width=\"2560\" height=\"1748\" srcset=\"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/new-github-repository-details-scaled.jpg 2560w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/new-github-repository-details-300x205.jpg 300w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/new-github-repository-details-1024x699.jpg 1024w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/new-github-repository-details-768x524.jpg 768w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/new-github-repository-details-1536x1049.jpg 1536w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/new-github-repository-details-2048x1399.jpg 2048w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/new-github-repository-details-1920x1311.jpg 1920w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/new-github-repository-details-600x410.jpg 600w\" sizes=\"(max-width: 2560px) 100vw, 2560px\" \/><\/p>\n<h3>Linking A Local Project To GitHub<\/h3>\n<p>If you followed the steps above and created a new GitHub repository, copy the following three lines from the UI:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-5646437 size-full\" src=\"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/3-lines-scaled.jpg\" alt=\"Copy 3 lines from GitHub\" width=\"2560\" height=\"1773\" srcset=\"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/3-lines-scaled.jpg 2560w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/3-lines-300x208.jpg 300w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/3-lines-1024x709.jpg 1024w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/3-lines-768x532.jpg 768w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/3-lines-1536x1064.jpg 1536w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/3-lines-2048x1419.jpg 2048w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/3-lines-200x140.jpg 200w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/3-lines-1920x1330.jpg 1920w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/3-lines-600x416.jpg 600w\" sizes=\"(max-width: 2560px) 100vw, 2560px\" \/><\/p>\n<pre>git remote add origin https:\/\/github.com\/rasbt\/fun_with_git.git\r\ngit branch -M main\r\ngit push -u origin main<\/pre>\n<p>For now, keep these lines handy, and then head to your local Git (not GitHub) repository on your computer:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-5646438 size-full\" src=\"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/git-loc.png\" alt=\"Local Git\" width=\"1684\" height=\"616\" srcset=\"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/git-loc.png 1684w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/git-loc-300x110.png 300w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/git-loc-1024x375.png 1024w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/git-loc-768x281.png 768w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/git-loc-1536x562.png 1536w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/git-loc-600x219.png 600w\" sizes=\"(max-width: 1684px) 100vw, 1684px\" \/><br \/>\n(The\u00a0<code>pwd<\/code> command prints the current directory.)<\/p>\n<p>Then, just paste the 3 lines we copied earlier into the terminal and press <strong>Enter<\/strong>:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-5646439 size-full\" src=\"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/enter-git.png\" alt=\"Click Enter in Git\" width=\"1684\" height=\"616\" srcset=\"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/enter-git.png 1684w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/enter-git-300x110.png 300w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/enter-git-1024x375.png 1024w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/enter-git-768x281.png 768w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/enter-git-1536x562.png 1536w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/enter-git-600x219.png 600w\" sizes=\"(max-width: 1684px) 100vw, 1684px\" \/><\/p>\n<p>Then, when you refresh your browser page, you should see your Git project now synced with your GitHub project:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-5646440 size-full\" src=\"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/sync-git-scaled.jpg\" alt=\"Sync in Git\" width=\"2560\" height=\"1773\" srcset=\"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/sync-git-scaled.jpg 2560w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/sync-git-300x208.jpg 300w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/sync-git-1024x709.jpg 1024w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/sync-git-768x532.jpg 768w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/sync-git-1536x1064.jpg 1536w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/sync-git-2048x1419.jpg 2048w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/sync-git-200x140.jpg 200w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/sync-git-1920x1330.jpg 1920w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/sync-git-600x416.jpg 600w\" sizes=\"(max-width: 2560px) 100vw, 2560px\" \/><\/p>\n<h3>Collaborating on GitHub<\/h3>\n<p>Note that there are two different ways we can collaborate on a code project.<\/p>\n<ol>\n<li>We fork a repository. This means that we create a copy of someone else&#8217;s repository under our own account. Then, we clone this forked repository to our computer and make changes locally. After making the changes locally, we push the the changes back to the repository on our GitHub repository. And, if we are finished, we then submit a pull request.<\/li>\n<li>We are added as a collaborator to someone&#8217;s GitHub repository. In this case, we don&#8217;t need to fork the project and can instead clone the GitHub repository directly. This is what we are assuming below.<\/li>\n<\/ol>\n<p>You can add a collaborator as follows, via the Settings menu:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-5646441 size-full\" src=\"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/collab-settings-menu-scaled.jpg\" alt=\"GitHub collaboration settings menu\" width=\"2560\" height=\"1773\" srcset=\"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/collab-settings-menu-scaled.jpg 2560w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/collab-settings-menu-300x208.jpg 300w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/collab-settings-menu-1024x709.jpg 1024w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/collab-settings-menu-768x532.jpg 768w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/collab-settings-menu-1536x1064.jpg 1536w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/collab-settings-menu-2048x1419.jpg 2048w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/collab-settings-menu-200x140.jpg 200w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/collab-settings-menu-1920x1330.jpg 1920w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/collab-settings-menu-600x416.jpg 600w\" sizes=\"(max-width: 2560px) 100vw, 2560px\" \/><\/p>\n<p>Assuming you are a collaborator, you can clone the repository and make changes to the repository:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-5646442 size-full\" src=\"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/clone-in-github-scaled.jpg\" alt=\"Clone in GitHub\" width=\"2560\" height=\"1773\" srcset=\"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/clone-in-github-scaled.jpg 2560w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/clone-in-github-300x208.jpg 300w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/clone-in-github-1024x709.jpg 1024w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/clone-in-github-768x532.jpg 768w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/clone-in-github-1536x1064.jpg 1536w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/clone-in-github-2048x1419.jpg 2048w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/clone-in-github-200x140.jpg 200w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/clone-in-github-1920x1330.jpg 1920w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/clone-in-github-600x416.jpg 600w\" sizes=\"(max-width: 2560px) 100vw, 2560px\" \/><\/p>\n<p>Copy the GitHub repository URL as shown above and use\u00a0<code>git clone<\/code>\u00a0on your terminal:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-5646443 size-full\" src=\"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/clone-terminal.png\" alt=\"Clone in terminal\" width=\"1774\" height=\"904\" srcset=\"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/clone-terminal.png 1774w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/clone-terminal-300x153.png 300w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/clone-terminal-1024x522.png 1024w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/clone-terminal-768x391.png 768w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/clone-terminal-1536x783.png 1536w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/clone-terminal-600x306.png 600w\" sizes=\"(max-width: 1774px) 100vw, 1774px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-5646444 size-full\" src=\"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/new-feature.png\" alt=\"New feature in terminal\" width=\"1774\" height=\"904\" srcset=\"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/new-feature.png 1774w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/new-feature-300x153.png 300w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/new-feature-1024x522.png 1024w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/new-feature-768x391.png 768w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/new-feature-1536x783.png 1536w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/new-feature-600x306.png 600w\" sizes=\"(max-width: 1774px) 100vw, 1774px\" \/><\/p>\n<p dir=\"auto\">The most common workflow is to create new features in a new branch. <strong>We recommend not making changes directly to the main branch.<\/strong><\/p>\n<p dir=\"auto\">Now, we can make changes to files in this repository. After we are satisfied with the changes, we can use our familiar git commands to stage and commit the changes<\/p>\n<pre>git add .\r\ngit commit -m 'i added a new feature!'\r\n<\/pre>\n<p>While this is all we need when we use git locally, the question is now how do we sync this back to the server? This is where a new git command comes in!\u00a0<code>git push origin<\/code>!<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-5646445 size-full\" src=\"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/git-push-origin.png\" alt=\"Git push origin\" width=\"1774\" height=\"904\" srcset=\"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/git-push-origin.png 1774w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/git-push-origin-300x153.png 300w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/git-push-origin-1024x522.png 1024w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/git-push-origin-768x391.png 768w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/git-push-origin-1536x783.png 1536w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/git-push-origin-600x306.png 600w\" sizes=\"(max-width: 1774px) 100vw, 1774px\" \/><\/p>\n<p>Finally, after pushing the new changes to the new feature branch, we can create a new Pull Request via the GitHub interface:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-5646446 size-full\" src=\"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/pr-1-scaled.jpg\" alt=\"GitHub pull request 1\" width=\"2560\" height=\"1773\" srcset=\"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/pr-1-scaled.jpg 2560w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/pr-1-300x208.jpg 300w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/pr-1-1024x709.jpg 1024w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/pr-1-768x532.jpg 768w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/pr-1-1536x1064.jpg 1536w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/pr-1-2048x1419.jpg 2048w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/pr-1-200x140.jpg 200w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/pr-1-1920x1330.jpg 1920w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/pr-1-600x416.jpg 600w\" sizes=\"(max-width: 2560px) 100vw, 2560px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-5646447 size-full\" src=\"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/pr-2-scaled.jpg\" alt=\"GitHub pull request 2\" width=\"2560\" height=\"1773\" srcset=\"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/pr-2-scaled.jpg 2560w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/pr-2-300x208.jpg 300w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/pr-2-1024x709.jpg 1024w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/pr-2-768x532.jpg 768w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/pr-2-1536x1064.jpg 1536w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/pr-2-2048x1419.jpg 2048w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/pr-2-200x140.jpg 200w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/pr-2-1920x1330.jpg 1920w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/08\/pr-2-600x416.jpg 600w\" sizes=\"(max-width: 2560px) 100vw, 2560px\" \/><\/p>\n<p>You can think of a pull request as a suggestion to merge the new feature branch into the project&#8217;s main branch.<\/p>\n<p>In the next episode, we will learn how to interact with collaborators via the GitHub interface upon submitting a Pull Request.<\/p>\n<p>Stay tuned for future episodes of Lightning Bits! Also, If you have questions or suggestions, please don&#8217;t hesitate to reach out to William (<span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/twitter.com\/_willfalcon\" rel=\"nofollow\">@_willfalcon<\/a><\/span>) and Sebastian (<span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/twitter.com\/rasbt\" rel=\"nofollow\">@rasbt<\/a><\/span>) on Twitter or join us on <a style=\"color: #0000ff;\" href=\"https:\/\/pytorch-lightning.slack.com\/archives\/C03GS6MTCCQ\" rel=\"nofollow\"><u>Slack<\/u><\/a>!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this Lightning Bits episode, William and Sebastian talk about how to share your code on GitHub and collaborate with others on open-source projects. They discuss how to create an account on GitHub and how to submit your first pull request. Watch the video, or continue reading below. GitHub Pull Request In the previous episodes,<a class=\"excerpt-read-more\" href=\"https:\/\/lightning.ai\/pages\/education\/lightning-bits\/creating-a-pull-request-on-github\/\" title=\"ReadEP 08: Creating a Pull Request on GitHub\">&#8230; Read more &raquo;<\/a><\/p>\n","protected":false},"author":16,"featured_media":5646448,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":"","_links_to":"","_links_to_target":""},"categories":[102],"tags":[90,91,77,95],"glossary":[],"acf":{"hide_from_archive":null,"content_type":null,"code_embed":null,"code_shortcode":null,"custom_styles":null,"sticky":null,"additional_authors":null,"mathjax":null,"default_editor":null,"sections":null,"show_table_of_contents":null,"table_of_contents":null,"tabs":null,"tab_group":null},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>EP 08: Creating a Pull Request on GitHub - Lightning AI<\/title>\n<meta name=\"description\" content=\"In this Lightning Bits episode, learn how to share your code on GitHub &amp; collaborate with others on open-source projects using GitHub pull requests.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/lightning.ai\/pages\/education\/lightning-bits\/creating-a-pull-request-on-github\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"EP 08: Creating a Pull Request on GitHub - Lightning AI\" \/>\n<meta property=\"og:description\" content=\"In this Lightning Bits episode, learn how to share your code on GitHub &amp; collaborate with others on open-source projects using GitHub pull requests.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/lightning.ai\/pages\/education\/lightning-bits\/creating-a-pull-request-on-github\/\" \/>\n<meta property=\"og:site_name\" content=\"Lightning AI\" \/>\n<meta property=\"article:published_time\" content=\"2022-07-11T11:54:37+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-09-10T15:11:10+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/05\/GitHub-Pull-Requests.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"720\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"JP Hennessy\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@LightningAI\" \/>\n<meta name=\"twitter:site\" content=\"@LightningAI\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"JP Hennessy\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/lightning.ai\/pages\/education\/lightning-bits\/creating-a-pull-request-on-github\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/lightning.ai\/pages\/education\/lightning-bits\/creating-a-pull-request-on-github\/\"},\"author\":{\"name\":\"JP Hennessy\",\"@id\":\"https:\/\/lightning.ai\/pages\/#\/schema\/person\/2518f4d5541f8e98016f6289169141a6\"},\"headline\":\"EP 08: Creating a Pull Request on GitHub\",\"datePublished\":\"2022-07-11T11:54:37+00:00\",\"dateModified\":\"2022-09-10T15:11:10+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/lightning.ai\/pages\/education\/lightning-bits\/creating-a-pull-request-on-github\/\"},\"wordCount\":740,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/lightning.ai\/pages\/#organization\"},\"image\":{\"@id\":\"https:\/\/lightning.ai\/pages\/education\/lightning-bits\/creating-a-pull-request-on-github\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/05\/GitHub-Pull-Requests.png\",\"keywords\":[\"git\",\"github\",\"lightning bits\",\"pull request\"],\"articleSection\":[\"Lightning Bits\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/lightning.ai\/pages\/education\/lightning-bits\/creating-a-pull-request-on-github\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/lightning.ai\/pages\/education\/lightning-bits\/creating-a-pull-request-on-github\/\",\"url\":\"https:\/\/lightning.ai\/pages\/education\/lightning-bits\/creating-a-pull-request-on-github\/\",\"name\":\"EP 08: Creating a Pull Request on GitHub - Lightning AI\",\"isPartOf\":{\"@id\":\"https:\/\/lightning.ai\/pages\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/lightning.ai\/pages\/education\/lightning-bits\/creating-a-pull-request-on-github\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/lightning.ai\/pages\/education\/lightning-bits\/creating-a-pull-request-on-github\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/05\/GitHub-Pull-Requests.png\",\"datePublished\":\"2022-07-11T11:54:37+00:00\",\"dateModified\":\"2022-09-10T15:11:10+00:00\",\"description\":\"In this Lightning Bits episode, learn how to share your code on GitHub & collaborate with others on open-source projects using GitHub pull requests.\",\"breadcrumb\":{\"@id\":\"https:\/\/lightning.ai\/pages\/education\/lightning-bits\/creating-a-pull-request-on-github\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/lightning.ai\/pages\/education\/lightning-bits\/creating-a-pull-request-on-github\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/lightning.ai\/pages\/education\/lightning-bits\/creating-a-pull-request-on-github\/#primaryimage\",\"url\":\"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/05\/GitHub-Pull-Requests.png\",\"contentUrl\":\"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/05\/GitHub-Pull-Requests.png\",\"width\":1280,\"height\":720,\"caption\":\"GitHub Pull Requests\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/lightning.ai\/pages\/education\/lightning-bits\/creating-a-pull-request-on-github\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/lightning.ai\/pages\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"EP 08: Creating a Pull Request on GitHub\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/lightning.ai\/pages\/#website\",\"url\":\"https:\/\/lightning.ai\/pages\/\",\"name\":\"Lightning AI\",\"description\":\"The platform for teams to build AI.\",\"publisher\":{\"@id\":\"https:\/\/lightning.ai\/pages\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/lightning.ai\/pages\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/lightning.ai\/pages\/#organization\",\"name\":\"Lightning AI\",\"url\":\"https:\/\/lightning.ai\/pages\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/lightning.ai\/pages\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2023\/02\/image-17.png\",\"contentUrl\":\"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2023\/02\/image-17.png\",\"width\":1744,\"height\":856,\"caption\":\"Lightning AI\"},\"image\":{\"@id\":\"https:\/\/lightning.ai\/pages\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/LightningAI\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/lightning.ai\/pages\/#\/schema\/person\/2518f4d5541f8e98016f6289169141a6\",\"name\":\"JP Hennessy\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/lightning.ai\/pages\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/28ade268218ae45f723b0b62499f527a?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/28ade268218ae45f723b0b62499f527a?s=96&d=mm&r=g\",\"caption\":\"JP Hennessy\"},\"url\":\"https:\/\/lightning.ai\/pages\/author\/jplightning-ai\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"EP 08: Creating a Pull Request on GitHub - Lightning AI","description":"In this Lightning Bits episode, learn how to share your code on GitHub & collaborate with others on open-source projects using GitHub pull requests.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/lightning.ai\/pages\/education\/lightning-bits\/creating-a-pull-request-on-github\/","og_locale":"en_US","og_type":"article","og_title":"EP 08: Creating a Pull Request on GitHub - Lightning AI","og_description":"In this Lightning Bits episode, learn how to share your code on GitHub & collaborate with others on open-source projects using GitHub pull requests.","og_url":"https:\/\/lightning.ai\/pages\/education\/lightning-bits\/creating-a-pull-request-on-github\/","og_site_name":"Lightning AI","article_published_time":"2022-07-11T11:54:37+00:00","article_modified_time":"2022-09-10T15:11:10+00:00","og_image":[{"width":1280,"height":720,"url":"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/05\/GitHub-Pull-Requests.png","type":"image\/png"}],"author":"JP Hennessy","twitter_card":"summary_large_image","twitter_creator":"@LightningAI","twitter_site":"@LightningAI","twitter_misc":{"Written by":"JP Hennessy","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/lightning.ai\/pages\/education\/lightning-bits\/creating-a-pull-request-on-github\/#article","isPartOf":{"@id":"https:\/\/lightning.ai\/pages\/education\/lightning-bits\/creating-a-pull-request-on-github\/"},"author":{"name":"JP Hennessy","@id":"https:\/\/lightning.ai\/pages\/#\/schema\/person\/2518f4d5541f8e98016f6289169141a6"},"headline":"EP 08: Creating a Pull Request on GitHub","datePublished":"2022-07-11T11:54:37+00:00","dateModified":"2022-09-10T15:11:10+00:00","mainEntityOfPage":{"@id":"https:\/\/lightning.ai\/pages\/education\/lightning-bits\/creating-a-pull-request-on-github\/"},"wordCount":740,"commentCount":0,"publisher":{"@id":"https:\/\/lightning.ai\/pages\/#organization"},"image":{"@id":"https:\/\/lightning.ai\/pages\/education\/lightning-bits\/creating-a-pull-request-on-github\/#primaryimage"},"thumbnailUrl":"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/05\/GitHub-Pull-Requests.png","keywords":["git","github","lightning bits","pull request"],"articleSection":["Lightning Bits"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/lightning.ai\/pages\/education\/lightning-bits\/creating-a-pull-request-on-github\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/lightning.ai\/pages\/education\/lightning-bits\/creating-a-pull-request-on-github\/","url":"https:\/\/lightning.ai\/pages\/education\/lightning-bits\/creating-a-pull-request-on-github\/","name":"EP 08: Creating a Pull Request on GitHub - Lightning AI","isPartOf":{"@id":"https:\/\/lightning.ai\/pages\/#website"},"primaryImageOfPage":{"@id":"https:\/\/lightning.ai\/pages\/education\/lightning-bits\/creating-a-pull-request-on-github\/#primaryimage"},"image":{"@id":"https:\/\/lightning.ai\/pages\/education\/lightning-bits\/creating-a-pull-request-on-github\/#primaryimage"},"thumbnailUrl":"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/05\/GitHub-Pull-Requests.png","datePublished":"2022-07-11T11:54:37+00:00","dateModified":"2022-09-10T15:11:10+00:00","description":"In this Lightning Bits episode, learn how to share your code on GitHub & collaborate with others on open-source projects using GitHub pull requests.","breadcrumb":{"@id":"https:\/\/lightning.ai\/pages\/education\/lightning-bits\/creating-a-pull-request-on-github\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/lightning.ai\/pages\/education\/lightning-bits\/creating-a-pull-request-on-github\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/lightning.ai\/pages\/education\/lightning-bits\/creating-a-pull-request-on-github\/#primaryimage","url":"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/05\/GitHub-Pull-Requests.png","contentUrl":"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2022\/05\/GitHub-Pull-Requests.png","width":1280,"height":720,"caption":"GitHub Pull Requests"},{"@type":"BreadcrumbList","@id":"https:\/\/lightning.ai\/pages\/education\/lightning-bits\/creating-a-pull-request-on-github\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/lightning.ai\/pages\/"},{"@type":"ListItem","position":2,"name":"EP 08: Creating a Pull Request on GitHub"}]},{"@type":"WebSite","@id":"https:\/\/lightning.ai\/pages\/#website","url":"https:\/\/lightning.ai\/pages\/","name":"Lightning AI","description":"The platform for teams to build AI.","publisher":{"@id":"https:\/\/lightning.ai\/pages\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/lightning.ai\/pages\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/lightning.ai\/pages\/#organization","name":"Lightning AI","url":"https:\/\/lightning.ai\/pages\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/lightning.ai\/pages\/#\/schema\/logo\/image\/","url":"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2023\/02\/image-17.png","contentUrl":"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2023\/02\/image-17.png","width":1744,"height":856,"caption":"Lightning AI"},"image":{"@id":"https:\/\/lightning.ai\/pages\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/LightningAI"]},{"@type":"Person","@id":"https:\/\/lightning.ai\/pages\/#\/schema\/person\/2518f4d5541f8e98016f6289169141a6","name":"JP Hennessy","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/lightning.ai\/pages\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/28ade268218ae45f723b0b62499f527a?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/28ade268218ae45f723b0b62499f527a?s=96&d=mm&r=g","caption":"JP Hennessy"},"url":"https:\/\/lightning.ai\/pages\/author\/jplightning-ai\/"}]}},"_links":{"self":[{"href":"https:\/\/lightning.ai\/pages\/wp-json\/wp\/v2\/posts\/5646434"}],"collection":[{"href":"https:\/\/lightning.ai\/pages\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lightning.ai\/pages\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lightning.ai\/pages\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/lightning.ai\/pages\/wp-json\/wp\/v2\/comments?post=5646434"}],"version-history":[{"count":0,"href":"https:\/\/lightning.ai\/pages\/wp-json\/wp\/v2\/posts\/5646434\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lightning.ai\/pages\/wp-json\/wp\/v2\/media\/5646448"}],"wp:attachment":[{"href":"https:\/\/lightning.ai\/pages\/wp-json\/wp\/v2\/media?parent=5646434"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lightning.ai\/pages\/wp-json\/wp\/v2\/categories?post=5646434"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lightning.ai\/pages\/wp-json\/wp\/v2\/tags?post=5646434"},{"taxonomy":"glossary","embeddable":true,"href":"https:\/\/lightning.ai\/pages\/wp-json\/wp\/v2\/glossary?post=5646434"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}