{"id":18665,"date":"2020-06-29T20:50:16","date_gmt":"2020-06-30T03:50:16","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=18665"},"modified":"2023-12-01T03:36:10","modified_gmt":"2023-12-01T11:36:10","slug":"git-pull-request","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/git-pull-request\/","title":{"rendered":"Git Pull Request: How to Create a Pull Request"},"content":{"rendered":"\n<p>Git repositories have become a popular way to manage a codebase. Using Git, you can have multiple people working on a project simultaneously.<br><\/p>\n\n\n\n<p>Everyone can have a version of a project on their local machine to modify, but any changes made will only affect the main project when they are \u201cpushed\u201d to the main repository.<br><\/p>\n\n\n\n<p>Git offers a feature called pull requests which allow developers to propose changes to a codebase without actually making those changes. In this guide, we\u2019re going to discuss what pull requests are, why they are useful and how you can create your own pull request.<br><\/p>\n\n\n\n<p>To follow along with this tutorial, you\u2019ll need to have Git installed on your local machine. You should also have an account on GitHub, which we\u2019ll be using to show you how to create a pull request.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is a Pull Request?<\/h2>\n\n\n\n<p>A pull request is a way to submit a contribution to a software project using a version control system such as Git. Developers use pull requests to propose changes to a codebase.<br><\/p>\n\n\n\n<p>Using a pull request, a developer can show everyone who is working on a project what changes they think are necessary. For instance, if a developer is working on a bug fix, they could create a pull request to show everyone their solution to the bug.<br><\/p>\n\n\n\n<p>When a pull request is created, anyone on the project can view that pull request. In this case, it would mean that a developer could ask for feedback on their bug fix from other team members. This all happens without making a change to the final codebase.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why Are Pull Requests Useful?<\/h2>\n\n\n\n<p>Pull requests allow developers to effectively collaborate using code. Instead of having to push a change to the main version of a project, a developer can submit a pull request. This method allows them to facilitate feedback on their code.<br><\/p>\n\n\n\n<p>Because pull requests don\u2019t involve changing the main version of a codebase, they are also a great tool for code review. If there are any bugs in your code or any ways in which your code could be improved, they could be addressed directly within the pull request.<br><\/p>\n\n\n\n<p>There\u2019s no need to worry whether bugs have been introduced into the main codebase; a pull request is stored in isolation from the main version of a project. Often, pull requests are used in public repositories for open source projects. This is because the code in these projects has many different contributors.&nbsp;<br><\/p>\n\n\n\n<p>The code in a pull request may be a work in progress. This is because it will not affect the main version of a code until a git merge operation is run or the pull request is moved into the main version of a project by the project maintainer.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 1: Create a Fork<\/h2>\n\n\n\n<p>If you are contributing to someone else\u2019s repository, you first need to have your own copy of a repository to which you have made changes. This is where forking comes in. In Git, the word \u201cfork\u201d refers to creating your own copy of a repository.<br><\/p>\n\n\n\n<p><em>Note: You can skip this step if you are contributing to a repository you own.<\/em><br><\/p>\n\n\n\n<p>We\u2019re going to create a fork of the \u201cpullrequest-tutorial\u201d repository on Career Karma Tutorials. You can view this repository here:<\/p>\n\n\n\nhttps:\/\/github.com\/Career-Karma-Tutorials\/pullrequest-tutorial\n\n\n\n<p><\/p>\n\n\n\n<p>On GitHub, you can create a fork by pressing the \u201cFork\u201d button on the top right side of a repository:<br><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh6.googleusercontent.com\/Bd30tJ_LIuE7aaP59PhTei6T9jszxx6__0JIakcj6SjjLUA4Euv9hSdIiYxD8bDBr1RBLXPjMnEIYh48LcZFqsakTVuD8MYIeZDub3vdDHV-nzLlPCOXHx8Q-b2GqEC5LTqfuh7U\" alt=\"\"\/><\/figure>\n\n\n\n<p>When you click this button, a copy of the repository will be created under your account. In my case, if I create a copy of this repository, it will be moved to jamesgallagher432\/pullrequest-tutorial. Now that we have a forked repository, we need to make a local copy of our code and create a branch.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 2: Create a Local Copy and Create a Branch<\/h2>\n\n\n\n<p>We have our version of the pullrequest-tutorial repository on GitHub. Although we can make changes to our code on GitHub, this is impractical for most software projects. Therefore, we are going to create a copy of our repository on our local machine.&nbsp;<br><\/p>\n\n\n\n<p>You can create a copy of a repository using the git clone command line operation:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>git clone https:\/\/github.com\/username\/repository_name\ncd repository_name<\/pre><\/div>\n\n\n\n<p>These commands create a local working copy of our code to which we can make changes and move our terminal session into the project folder. To learn more about the git clone command, read our <a href=\"https:\/\/careerkarma.com\/blog\/git-clone\/\">ultimate guide to the git clone command<\/a>.<br><\/p>\n\n\n\n<p>We now have a copy of the repository on our local machine and we\u2019re almost ready to make changes. The next step is to create a branch on which we can make our changes.<br><\/p>\n\n\n\n<p>A branch is like another version of a repository within a repository. The default branch for a repository is called <strong>master<\/strong>, and is where the main version of a codebase is usually stored. Developers use branches to keep track of different versions of their code.<br><\/p>\n\n\n\n<p>Suppose we want to modify the README.md file in our code. To do so, we\u2019re going to create a branch called \u201cupdate-docs\u201d which will contain our updated code. We can do so using this code:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>git checkout -b update-docs<\/pre><\/div>\n\n\n\n<p>The first command creates a new branch called \u201cupdate-docs\u201d and then changes our Git session to view the code on the update-docs branch.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 3: Make Changes<\/h2>\n\n\n\n<p>For this example, we are going to change our README.md to contain the following:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre># pullrequest-tutorial\nAn example repository for how to create your own pull request.\nCreated by Career Karma tutorials.<\/pre><\/div>\n\n\n\n<p>When we save this file, our changes will be made on our local machine. But, these changes will not yet be saved to our repository. This is because Git is a distributed version control system and changes are only made to a repository when you commit them.<br><\/p>\n\n\n\n<p>Before we commit our changes, we need to use \u201cgit add\u201d to add those changes to a Git commit:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>git add README.md<\/pre><\/div>\n\n\n\n<p>The file \u201cREADME.md\u201d is now ready to be committed to our repository.<\/p>\n\n\n\n<p>If you want to change multiple files, you can do so. Make sure that if you change multiple files you add each of them to the staging area using &#8220;git add&#8221; otherwise they will not appear in your commit later on.<\/p>\n\n\n\n<p>You can commit a change to a repository using the git commit command. When you use this command, you\u2019ll need to provide a short message which describes the changes you have made.&nbsp;<br><\/p>\n\n\n\n<p>In this example, we\u2019re going to add the message \u201cdocs: Added created by to README.md\u201d, which briefly tells other developers what changes we have made.<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>git commit -m \"docs: Added created by to README.md\"<\/pre><\/div>\n\n\n\n<p>If you need to write a longer commit message, you can use the git commit command without the \u201c-m\u201d flag. Learn more about this in our tutorial on how to use the <a href=\"https:\/\/careerkarma.com\/blog\/git-commit\/\">git commit command<\/a>.<br><\/p>\n\n\n\n<p>At the moment, our commit is only stored on our local copy of the repository. That\u2019s because we haven\u2019t pushed our code to our main repository. \u201cPushing\u201d is when you upload the changes you have made locally to the main version of a repository.<br><\/p>\n\n\n\n<p>You can push your code using this command:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>git push -u origin update-docs<\/pre><\/div>\n\n\n\n<p>This command will push your code to the version of the repository that you forked.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 4: Create a Pull Request<\/h2>\n\n\n\n<p>Our code is now uploaded to our remote Git repository, so we\u2019re ready to make a pull request. To do so, we can go to the homepage of our forked version of the repository. You\u2019ll see there is a button which says \u201cCompare &amp; pull request\u201d that is associated with our new branch:<br><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh5.googleusercontent.com\/FdYInUEC4KklL0k5-BloE1620vYMiEQzfxM10xD5fVLBQCEPNk78yiMEP0Z83BwhoyFyIG7p5VKdw3nIQaT1_jtcaeg1bgB_HaodZ_A2EpNoZBjp4mnXr0d3awidLtD3FGF7bDid\" alt=\"\"\/><\/figure>\n\n\n\n<p>When we press this button, we can create a pull request with our changes:<br><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh6.googleusercontent.com\/12fAqVocky0H1W5zMA7qx3COtCH34RQbazGyKuG8wYiVumIG2DtrkEBiF4mWA2L2KbvUSunhYNd6E5Do1flTFLMj7K1b3g9XWsMMg-zKaZwC9vOMlSpq9aDOq9NSw-gYvvxqnztp\" alt=\"\"\/><\/figure>\n\n\n\n<p>In this form we can specify the name of our pull request (which is automatically set as the commit message of your most recent change) and the description for our pull request.&nbsp;<br><\/p>\n\n\n\n<p>In this case, we are going to propose merging our pull request to our \u201cmaster\u201d branch. We do this by specifying \u201cbase: master\u201d in the top box of the \u201cOpen a pull request\u201d form.<br><\/p>\n\n\n\n<p>We could also propose changing the Career Karma Tutorials version of the repository by specifying it as the \u201chead repository\u201d.<br><\/p>\n\n\n\n<p>Upon clicking the \u201cCreate pull request\u201d button, a new pull request will be added to the repository. You can view the pull request created in this tutorial on <a href=\"https:\/\/github.com\/Career-Karma-Tutorials\/pullrequest-tutorial\/pull\/1\" target=\"_blank\" rel=\"noopener\" rel=\"nofollow\">GitHub<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Wrapping Up<\/h2>\n\n\n\n<p>Congratulations, you\u2019ve just created a pull request using Git and GitHub!<br><\/p>\n\n\n\n<p>To recap, the steps you need to follow to create a pull request are:<br><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Create a fork (if you don\u2019t have one already)<\/li>\n\n\n\n<li>Create a local copy of a repository<\/li>\n\n\n\n<li>Create a new branch and make changes<\/li>\n\n\n\n<li>Push your code<\/li>\n\n\n\n<li>Create a pull request in GitHub<\/li>\n<\/ul>\n\n\n\n<p>Now you\u2019re equipped with the knowledge you need to start contributing to projects through pull requests like a Git pro!<\/p>\n","protected":false},"excerpt":{"rendered":"Git repositories have become a popular way to manage a codebase. Using Git, you can have multiple people working on a project simultaneously. Everyone can have a version of a project on their local machine to modify, but any changes made will only affect the main project when they are \u201cpushed\u201d to the main repository.&hellip;","protected":false},"author":240,"featured_media":18666,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[17286],"tags":[],"class_list":{"0":"post-18665","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-git"},"acf":{"post_sub_title":"","sprint_id":"","query_class":"Software Engineering","school_sft":"","parent_sft":"","school_privacy_policy":"","has_review":"","is_sponser_post":"","is_guest_post":""},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.4 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Git Pull Request: How to Create a Pull Request | Career Karma<\/title>\n<meta name=\"description\" content=\"Pull requests are an essential part of working on collaborative projects on GitHub. On Career Karma, learn how to create a pull request using Git and GitHub.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/careerkarma.com\/blog\/git-pull-request\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Git Pull Request: How to Create a Pull Request\" \/>\n<meta property=\"og:description\" content=\"Pull requests are an essential part of working on collaborative projects on GitHub. On Career Karma, learn how to create a pull request using Git and GitHub.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/git-pull-request\/\" \/>\n<meta property=\"og:site_name\" content=\"Career Karma\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/facebook.com\/careerkarmaapp\" \/>\n<meta property=\"article:published_time\" content=\"2020-06-30T03:50:16+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-01T11:36:10+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/mimi-thian-VHQ0cw2euA-unsplash-3.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1020\" \/>\n\t<meta property=\"og:image:height\" content=\"765\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"James Gallagher\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@career_karma\" \/>\n<meta name=\"twitter:site\" content=\"@career_karma\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"James Gallagher\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/git-pull-request\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/git-pull-request\\\/\"},\"author\":{\"name\":\"James Gallagher\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#\\\/schema\\\/person\\\/e79364792443fbff794a144c67ec8e94\"},\"headline\":\"Git Pull Request: How to Create a Pull Request\",\"datePublished\":\"2020-06-30T03:50:16+00:00\",\"dateModified\":\"2023-12-01T11:36:10+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/git-pull-request\\\/\"},\"wordCount\":1466,\"commentCount\":2,\"image\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/git-pull-request\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/mimi-thian-VHQ0cw2euA-unsplash-3.jpg\",\"articleSection\":[\"Git\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/careerkarma.com\\\/blog\\\/git-pull-request\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/git-pull-request\\\/\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/git-pull-request\\\/\",\"name\":\"Git Pull Request: How to Create a Pull Request | Career Karma\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/git-pull-request\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/git-pull-request\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/mimi-thian-VHQ0cw2euA-unsplash-3.jpg\",\"datePublished\":\"2020-06-30T03:50:16+00:00\",\"dateModified\":\"2023-12-01T11:36:10+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#\\\/schema\\\/person\\\/e79364792443fbff794a144c67ec8e94\"},\"description\":\"Pull requests are an essential part of working on collaborative projects on GitHub. On Career Karma, learn how to create a pull request using Git and GitHub.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/git-pull-request\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/careerkarma.com\\\/blog\\\/git-pull-request\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/git-pull-request\\\/#primaryimage\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/mimi-thian-VHQ0cw2euA-unsplash-3.jpg\",\"contentUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/mimi-thian-VHQ0cw2euA-unsplash-3.jpg\",\"width\":1020,\"height\":765},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/git-pull-request\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Blog\",\"item\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Git\",\"item\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/git\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Git Pull Request: How to Create a Pull Request\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/\",\"name\":\"Career Karma\",\"description\":\"Latest Coding Bootcamp News &amp; Career Hacks from Industry Insiders\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#\\\/schema\\\/person\\\/e79364792443fbff794a144c67ec8e94\",\"name\":\"James Gallagher\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/james-gallagher-150x150.jpg\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/james-gallagher-150x150.jpg\",\"contentUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/james-gallagher-150x150.jpg\",\"caption\":\"James Gallagher\"},\"description\":\"James Gallagher is a self-taught programmer and the technical content manager at Career Karma. He has experience in range of programming languages and extensive expertise in Python, HTML, CSS, and JavaScript. James has written hundreds of programming tutorials, and he frequently contributes to publications like Codecademy, Treehouse, Repl.it, Afrotech, and others.\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/author\\\/jamesgallagher\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Git Pull Request: How to Create a Pull Request | Career Karma","description":"Pull requests are an essential part of working on collaborative projects on GitHub. On Career Karma, learn how to create a pull request using Git and GitHub.","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:\/\/careerkarma.com\/blog\/git-pull-request\/","og_locale":"en_US","og_type":"article","og_title":"Git Pull Request: How to Create a Pull Request","og_description":"Pull requests are an essential part of working on collaborative projects on GitHub. On Career Karma, learn how to create a pull request using Git and GitHub.","og_url":"https:\/\/careerkarma.com\/blog\/git-pull-request\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-06-30T03:50:16+00:00","article_modified_time":"2023-12-01T11:36:10+00:00","og_image":[{"width":1020,"height":765,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/mimi-thian-VHQ0cw2euA-unsplash-3.jpg","type":"image\/jpeg"}],"author":"James Gallagher","twitter_card":"summary_large_image","twitter_creator":"@career_karma","twitter_site":"@career_karma","twitter_misc":{"Written by":"James Gallagher","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/careerkarma.com\/blog\/git-pull-request\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/git-pull-request\/"},"author":{"name":"James Gallagher","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"headline":"Git Pull Request: How to Create a Pull Request","datePublished":"2020-06-30T03:50:16+00:00","dateModified":"2023-12-01T11:36:10+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/git-pull-request\/"},"wordCount":1466,"commentCount":2,"image":{"@id":"https:\/\/careerkarma.com\/blog\/git-pull-request\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/mimi-thian-VHQ0cw2euA-unsplash-3.jpg","articleSection":["Git"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/git-pull-request\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/git-pull-request\/","url":"https:\/\/careerkarma.com\/blog\/git-pull-request\/","name":"Git Pull Request: How to Create a Pull Request | Career Karma","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/git-pull-request\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/git-pull-request\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/mimi-thian-VHQ0cw2euA-unsplash-3.jpg","datePublished":"2020-06-30T03:50:16+00:00","dateModified":"2023-12-01T11:36:10+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"description":"Pull requests are an essential part of working on collaborative projects on GitHub. On Career Karma, learn how to create a pull request using Git and GitHub.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/git-pull-request\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/git-pull-request\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/git-pull-request\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/mimi-thian-VHQ0cw2euA-unsplash-3.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/mimi-thian-VHQ0cw2euA-unsplash-3.jpg","width":1020,"height":765},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/git-pull-request\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog","item":"https:\/\/careerkarma.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Git","item":"https:\/\/careerkarma.com\/blog\/git\/"},{"@type":"ListItem","position":3,"name":"Git Pull Request: How to Create a Pull Request"}]},{"@type":"WebSite","@id":"https:\/\/careerkarma.com\/blog\/#website","url":"https:\/\/careerkarma.com\/blog\/","name":"Career Karma","description":"Latest Coding Bootcamp News &amp; Career Hacks from Industry Insiders","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/careerkarma.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94","name":"James Gallagher","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg","caption":"James Gallagher"},"description":"James Gallagher is a self-taught programmer and the technical content manager at Career Karma. He has experience in range of programming languages and extensive expertise in Python, HTML, CSS, and JavaScript. James has written hundreds of programming tutorials, and he frequently contributes to publications like Codecademy, Treehouse, Repl.it, Afrotech, and others.","url":"https:\/\/careerkarma.com\/blog\/author\/jamesgallagher\/"}]}},"_links":{"self":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/18665","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/users\/240"}],"replies":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/comments?post=18665"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/18665\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/18666"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=18665"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=18665"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=18665"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}