{"id":302333,"date":"2021-08-23T11:02:15","date_gmt":"2021-08-23T11:02:15","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=302333"},"modified":"2023-05-05T10:06:11","modified_gmt":"2023-05-05T10:06:11","slug":"magento-2-contribution-install","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/magento-2-contribution-install\/","title":{"rendered":"Magento 2 Contribution Install"},"content":{"rendered":"\n<p>Follow the steps below to clone Magento2 official git branch.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>STEP 1: Clone the Magento repository<\/strong><\/h2>\n\n\n\n<p>You can clone the latest code from the&nbsp;<a href=\"https:\/\/github.com\/magento\/magento2\" target=\"_blank\" rel=\"noreferrer noopener\">Magento GitHub repository<\/a><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">git clone https:\/\/github.com\/magento\/magento2.git<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>STEP 2: Create an authentication file<\/strong><\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Create an  <a href=\"https:\/\/github.com\/magento\/magento2\/blob\/2.4\/auth.json.sample\" target=\"_blank\" rel=\"noreferrer noopener\"><code>auth.json<\/code><\/a> file in your Magento root directory.<\/li>\n\n\n\n<li>Copy the contents of the&nbsp;<a href=\"https:\/\/github.com\/magento\/magento2\/blob\/2.4\/auth.json.sample\">sample&nbsp;<code>auth.json<\/code>&nbsp;file<\/a>&nbsp;into the new&nbsp;<code>auth.json<\/code>&nbsp;file.<\/li>\n\n\n\n<li>Replace\u00a0<code>&lt;public-key&gt;<\/code>\u00a0and\u00a0<code>&lt;private-key&gt;<\/code>\u00a0with your Adobe Commerce authentication credentials. Add the\u00a0<code>github-oauth<\/code>\u00a0section and replace the\u00a0<code>&lt;personal-access-token&gt;<\/code>\u00a0with the one you created for your GitHub account.<\/li>\n<\/ol>\n\n\n\n<p><a href=\"https:\/\/docs.github.com\/en\/enterprise-server@3.4\/authentication\/keeping-your-account-and-data-secure\/creating-a-personal-access-token\">https:\/\/docs.github.com\/en\/enterprise-server@3.4\/authentication\/keeping-your-account-and-data-secure\/creating-a-personal-access-token<\/a><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">{\n    &quot;http-basic&quot;: {\n        &quot;repo.magento.com&quot;: {\n            &quot;username&quot;: &quot;&lt;public-key&gt;&quot;,\n            &quot;password&quot;: &quot;&lt;private-key&gt;&quot;\n        }\n    },\n    &quot;github-oauth&quot;: {\n        &quot;github.com&quot;: &quot;&lt;personal-access-token&gt;&quot;\n    }\n}<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">STEP 3: Install composer dependencies by running the below command.<\/h2>\n\n\n\n<pre class=\"EnlighterJSRAW\">composer install<\/pre>\n\n\n\n<p>Hope this helps, Thanks \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Follow the steps below to clone Magento2 official git branch. STEP 1: Clone the Magento repository You can clone the latest code from the&nbsp;Magento GitHub repository STEP 2: Create an authentication file https:\/\/docs.github.com\/en\/enterprise-server@3.4\/authentication\/keeping-your-account-and-data-secure\/creating-a-personal-access-token STEP 3: Install composer dependencies by running the below command. Hope this helps, Thanks \ud83d\ude42<\/p>\n","protected":false},"author":370,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[302,1],"tags":[],"class_list":["post-302333","post","type-post","status-publish","format-standard","hentry","category-magento2","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Magento 2 Contribution Install - Webkul Blog Install Magento 2 from Git<\/title>\n<meta name=\"description\" content=\"Learn how to install Magento 2 from official git branch in three simple steps\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/magento-2-contribution-install\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Magento 2 Contribution Install - Webkul Blog Install Magento 2 from Git\" \/>\n<meta property=\"og:description\" content=\"Learn how to install Magento 2 from official git branch in three simple steps\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/magento-2-contribution-install\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-08-23T11:02:15+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-05-05T10:06:11+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-og.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Piyush Goel\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Piyush Goel\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/magento-2-contribution-install\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/magento-2-contribution-install\/\"},\"author\":{\"name\":\"Piyush Goel\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/b7e57903873f644e164ab966ddc2dfaa\"},\"headline\":\"Magento 2 Contribution Install\",\"datePublished\":\"2021-08-23T11:02:15+00:00\",\"dateModified\":\"2023-05-05T10:06:11+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/magento-2-contribution-install\/\"},\"wordCount\":105,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"articleSection\":[\"Magento2\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/magento-2-contribution-install\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/magento-2-contribution-install\/\",\"url\":\"https:\/\/webkul.com\/blog\/magento-2-contribution-install\/\",\"name\":\"Magento 2 Contribution Install - Webkul Blog Install Magento 2 from Git\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"datePublished\":\"2021-08-23T11:02:15+00:00\",\"dateModified\":\"2023-05-05T10:06:11+00:00\",\"description\":\"Learn how to install Magento 2 from official git branch in three simple steps\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/magento-2-contribution-install\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/magento-2-contribution-install\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/magento-2-contribution-install\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Magento 2 Contribution Install\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/b7e57903873f644e164ab966ddc2dfaa\",\"name\":\"Piyush Goel\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/9ac760cf4b3f2187249f6510acc102cdb51926a23b59b9926232575f2316be6a?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/9ac760cf4b3f2187249f6510acc102cdb51926a23b59b9926232575f2316be6a?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Piyush Goel\"},\"url\":\"https:\/\/webkul.com\/blog\/author\/piyush-goel190\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Magento 2 Contribution Install - Webkul Blog Install Magento 2 from Git","description":"Learn how to install Magento 2 from official git branch in three simple steps","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:\/\/webkul.com\/blog\/magento-2-contribution-install\/","og_locale":"en_US","og_type":"article","og_title":"Magento 2 Contribution Install - Webkul Blog Install Magento 2 from Git","og_description":"Learn how to install Magento 2 from official git branch in three simple steps","og_url":"https:\/\/webkul.com\/blog\/magento-2-contribution-install\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2021-08-23T11:02:15+00:00","article_modified_time":"2023-05-05T10:06:11+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-og.png","type":"image\/png"}],"author":"Piyush Goel","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Piyush Goel","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/magento-2-contribution-install\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/magento-2-contribution-install\/"},"author":{"name":"Piyush Goel","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/b7e57903873f644e164ab966ddc2dfaa"},"headline":"Magento 2 Contribution Install","datePublished":"2021-08-23T11:02:15+00:00","dateModified":"2023-05-05T10:06:11+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/magento-2-contribution-install\/"},"wordCount":105,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"articleSection":["Magento2"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/magento-2-contribution-install\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/magento-2-contribution-install\/","url":"https:\/\/webkul.com\/blog\/magento-2-contribution-install\/","name":"Magento 2 Contribution Install - Webkul Blog Install Magento 2 from Git","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"datePublished":"2021-08-23T11:02:15+00:00","dateModified":"2023-05-05T10:06:11+00:00","description":"Learn how to install Magento 2 from official git branch in three simple steps","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/magento-2-contribution-install\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/magento-2-contribution-install\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/magento-2-contribution-install\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Magento 2 Contribution Install"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/b7e57903873f644e164ab966ddc2dfaa","name":"Piyush Goel","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/9ac760cf4b3f2187249f6510acc102cdb51926a23b59b9926232575f2316be6a?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/9ac760cf4b3f2187249f6510acc102cdb51926a23b59b9926232575f2316be6a?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Piyush Goel"},"url":"https:\/\/webkul.com\/blog\/author\/piyush-goel190\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/302333","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/370"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=302333"}],"version-history":[{"count":6,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/302333\/revisions"}],"predecessor-version":[{"id":380066,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/302333\/revisions\/380066"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=302333"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=302333"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=302333"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}