{"id":381345,"date":"2023-05-26T12:12:02","date_gmt":"2023-05-26T12:12:02","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=381345"},"modified":"2023-05-29T04:09:47","modified_gmt":"2023-05-29T04:09:47","slug":"how-to-resolve-git-conflicts-in-magento-2-module","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/how-to-resolve-git-conflicts-in-magento-2-module\/","title":{"rendered":"How to resolve git conflicts in Magento 2 Module"},"content":{"rendered":"\n<p>Git is a very powerful tool for developers. It is a free and open-source tool used for source code management.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>It is a version control system to manage small to large project<\/li>\n\n\n\n<li>It is used to track changes in source code.<\/li>\n\n\n\n<li>It provides an environment to&nbsp;enables multiple developers to work in parallel with each other.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"git-commands\">Basic Git Commands<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>git clone<\/li>\n\n\n\n<li>git status<\/li>\n\n\n\n<li>git commit<\/li>\n\n\n\n<li>git add <\/li>\n\n\n\n<li>git push<\/li>\n\n\n\n<li>git pull<\/li>\n\n\n\n<li>git init<\/li>\n\n\n\n<li>git config<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">What is Git conflict?<\/h2>\n\n\n\n<p>A git conflict arises when changes have been made on a file same line from two separate branches. Git is able to merge the changes automatically only if the commits are on different lines or branches. It can be due to two reasons: <\/p>\n\n\n\n<p>Here is an example:<\/p>\n\n\n\n<p>Assume two developers John and Sara are working on a project and they take\/pull the same code from the remote repository. They made changes to the same file and John has pushed his code to the remote repository Now Sara trying to push her code It will not work. Git will not allow pushing the code as the file is already changed by John to the remote repository.<\/p>\n\n\n\n<p>To prevent such conflicts, developers must work in separate branches. The Git merge command combines separate branches and resolves any conflicts.<\/p>\n\n\n\n<p>Now, John and Sara created their respective branches and made changes to the same file John pushed the code to the remote branches, and after that, Sara also pushes the code to her branch the Git merge command combines separate branches and resolves any conflicting edits if it not made to the same line. But if the changes are on the same line then it will create a merge conflict<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"800\" height=\"400\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/git_merge_conflict.png\" alt=\"Git Merge Conflict\" class=\"wp-image-383799\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/git_merge_conflict.png 800w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/git_merge_conflict-300x150.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/git_merge_conflict-250x125.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/git_merge_conflict-768x384.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Type of Git Merge Conflicts<\/h2>\n\n\n\n<p>There are two states when a <code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">merge<\/code> conflict takes place:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Starting the Merge<\/strong>: Merge will not start if there are any changes in the working directory. It can be resolved by staging your changes using <a href=\"#git-commands\">git commands<\/a>.<\/li>\n\n\n\n<li><strong>During the Merge<\/strong>: It can be due to the conflict between the local branch and the remote branch. Git resolves the possible conflicts rest but if any changes on the same file and same line then you have to resolve your git conflicts manually.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img decoding=\"async\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/git-conflict-on-push.png\" alt=\"git-conflict-on-push\" class=\"wp-image-383807\" width=\"821\" height=\"346\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/git-conflict-on-push.png 733w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/git-conflict-on-push-300x126.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/git-conflict-on-push-250x105.png 250w\" sizes=\"(max-width: 821px) 100vw, 821px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">How to Resolve Git Conflicts<\/h2>\n\n\n\n<p><strong>1<\/strong>. Pull and merge the latest changes from the remote repository<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">git pull<\/pre>\n\n\n\n<p>If possible git will auto-resolve the conflicts. Skip 2, 3, 4, and 5 Go to Step 6.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img decoding=\"async\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/git-pull.png\" alt=\"git-pull\" class=\"wp-image-383819\" width=\"821\" height=\"239\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/git-pull.png 735w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/git-pull-300x87.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/git-pull-250x73.png 250w\" sizes=\"(max-width: 821px) 100vw, 821px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p>Else. You will see: Automatic merge failed; fix conflicts and then commit the result.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img decoding=\"async\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/git-pull-merge-failed.png\" alt=\"git-pull-merge-failed\" class=\"wp-image-383824\" width=\"820\" height=\"246\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/git-pull-merge-failed.png 732w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/git-pull-merge-failed-300x90.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/git-pull-merge-failed-250x75.png 250w\" sizes=\"(max-width: 820px) 100vw, 820px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p><strong>2<\/strong>. Open the conflict file mentioned. You will see something like:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;&lt;&lt;&lt;&lt;&lt;&lt; HEAD\n- Commit with Message In details\n=======\n- Commit with Message Updated\n&gt;&gt;&gt;&gt;&gt;&gt;&gt; 2616df3fc3b10b677c0926fcadc8594f2f5bb1b6<\/pre>\n\n\n\n<p>Explanation:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;&lt;&lt;&lt;&lt;&lt;&lt; HEAD\n- Commit with Message In details \/\/ Where the conflict at working directory\n=======\n- Commit with Message Updated \/\/ Changes from remote\n&gt;&gt;&gt;&gt;&gt;&gt;&gt; 2616df3fc3b10b677c0926fcadc8594f2f5bb1b6 \/\/ Commit Id<\/pre>\n\n\n\n<p><strong>3<\/strong>. Resolve the conflict. The conflicting changes are marked by <code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">&lt;&lt;&lt;&lt;&lt;&lt;&lt; HEAD<\/code> and <code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">&gt;&gt;&gt;&gt;&gt;&gt;&gt;<\/code>. You need to choose which changes to keep and which to discard. <\/p>\n\n\n\n<p>Manually edit the file to combine the conflicting changes.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">- Clone\n- Pull\n- Status\n- Add\n- Commit with Message In details\n- Push<\/pre>\n\n\n\n<p>Or VSCode also provides support to resolve git conflict:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img decoding=\"async\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/Resolve-conflict-using-VScode.png\" alt=\"Resolve-conflict-using-VScode\" class=\"wp-image-383835\" width=\"819\" height=\"287\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/Resolve-conflict-using-VScode.png 801w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/Resolve-conflict-using-VScode-300x105.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/Resolve-conflict-using-VScode-250x88.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/Resolve-conflict-using-VScode-768x269.png 768w\" sizes=\"(max-width: 819px) 100vw, 819px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted\">\/\/ Accept Current change - will merge the current changes and merge\n- Clone\n- Pull\n- Status\n- Add\n- Commit with Message In details\n- Push\n\n\/\/ Accept Incoming Change - will merge the changes from remote\n- Clone\n- Pull\n- Status\n- Add\n- Commit with Message Updated\n- Push\n\n\/\/ Accept Both Change - will merge both local and remote changes\n- Clone\n- Pull\n- Status\n- Add\n- Commit with Message In details\n- Commit with Message Updated\n- Push<\/pre>\n\n\n\n<p><strong>4<\/strong>. Save the changes and add the changes to git:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">git add .<\/pre>\n\n\n\n<p><strong>5<\/strong>. Commit the changes<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">git commit -m \"resolved conflict\"<\/pre>\n\n\n\n<p><strong>6<\/strong>. Push the changes<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">git push origin master<\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"711\" height=\"383\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/merge-the-conflict.png\" alt=\"merge-the-conflict\" class=\"wp-image-383843\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/merge-the-conflict.png 711w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/merge-the-conflict-300x162.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/merge-the-conflict-250x135.png 250w\" sizes=\"(max-width: 711px) 100vw, 711px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p>We resolve the git conflicts. Hope It helps \ud83d\ude42<\/p>\n\n\n\n<p>Learn more from Webkul blogs <a href=\"https:\/\/webkul.com\/blog\/tag\/magento2\/\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a>:<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Git is a very powerful tool for developers. It is a free and open-source tool used for source code management. Basic Git Commands What is Git conflict? A git conflict arises when changes have been made on a file same line from two separate branches. Git is able to merge the changes automatically only if <a href=\"https:\/\/webkul.com\/blog\/how-to-resolve-git-conflicts-in-magento-2-module\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":362,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,9121,302],"tags":[1737,14277,2070],"class_list":["post-381345","post","type-post","status-publish","format-standard","hentry","category-magento","category-magento-2","category-magento2","tag-git","tag-git-conflict","tag-magento2"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to resolve git conflicts in Magento 2 Module - Webkul Blog<\/title>\n<meta name=\"description\" content=\"Git is a version control system to manage small to large projects. Git conflicts are common problem that has been faced by developers\" \/>\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\/how-to-resolve-git-conflicts-in-magento-2-module\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to resolve git conflicts in Magento 2 Module - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"Git is a version control system to manage small to large projects. Git conflicts are common problem that has been faced by developers\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/how-to-resolve-git-conflicts-in-magento-2-module\/\" \/>\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=\"2023-05-26T12:12:02+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-05-29T04:09:47+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/05\/git_merge_conflict.png\" \/>\n<meta name=\"author\" content=\"Vikas Tiwari\" \/>\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=\"Vikas Tiwari\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-resolve-git-conflicts-in-magento-2-module\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-resolve-git-conflicts-in-magento-2-module\/\"},\"author\":{\"name\":\"Vikas Tiwari\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/5f1a3d1e180e3468f8b2a6926cecff9b\"},\"headline\":\"How to resolve git conflicts in Magento 2 Module\",\"datePublished\":\"2023-05-26T12:12:02+00:00\",\"dateModified\":\"2023-05-29T04:09:47+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-resolve-git-conflicts-in-magento-2-module\/\"},\"wordCount\":501,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-resolve-git-conflicts-in-magento-2-module\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/05\/git_merge_conflict.png\",\"keywords\":[\"GIT\",\"Git Conflict\",\"Magento2\"],\"articleSection\":[\"magento\",\"Magento 2\",\"Magento2\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/how-to-resolve-git-conflicts-in-magento-2-module\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-resolve-git-conflicts-in-magento-2-module\/\",\"url\":\"https:\/\/webkul.com\/blog\/how-to-resolve-git-conflicts-in-magento-2-module\/\",\"name\":\"How to resolve git conflicts in Magento 2 Module - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-resolve-git-conflicts-in-magento-2-module\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-resolve-git-conflicts-in-magento-2-module\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/05\/git_merge_conflict.png\",\"datePublished\":\"2023-05-26T12:12:02+00:00\",\"dateModified\":\"2023-05-29T04:09:47+00:00\",\"description\":\"Git is a version control system to manage small to large projects. Git conflicts are common problem that has been faced by developers\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-resolve-git-conflicts-in-magento-2-module\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/how-to-resolve-git-conflicts-in-magento-2-module\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-resolve-git-conflicts-in-magento-2-module\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/git_merge_conflict.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/git_merge_conflict.png\",\"width\":800,\"height\":400,\"caption\":\"git_merge_conflict\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-resolve-git-conflicts-in-magento-2-module\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to resolve git conflicts in Magento 2 Module\"}]},{\"@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\/5f1a3d1e180e3468f8b2a6926cecff9b\",\"name\":\"Vikas Tiwari\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/49a0fe188f08a80af6fe7b6487da3a3e3adc1be472186b3f0eb833eff1323d10?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\/49a0fe188f08a80af6fe7b6487da3a3e3adc1be472186b3f0eb833eff1323d10?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Vikas Tiwari\"},\"url\":\"https:\/\/webkul.com\/blog\/author\/vikastiwari-magento160\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to resolve git conflicts in Magento 2 Module - Webkul Blog","description":"Git is a version control system to manage small to large projects. Git conflicts are common problem that has been faced by developers","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\/how-to-resolve-git-conflicts-in-magento-2-module\/","og_locale":"en_US","og_type":"article","og_title":"How to resolve git conflicts in Magento 2 Module - Webkul Blog","og_description":"Git is a version control system to manage small to large projects. Git conflicts are common problem that has been faced by developers","og_url":"https:\/\/webkul.com\/blog\/how-to-resolve-git-conflicts-in-magento-2-module\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2023-05-26T12:12:02+00:00","article_modified_time":"2023-05-29T04:09:47+00:00","og_image":[{"url":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/05\/git_merge_conflict.png","type":"","width":"","height":""}],"author":"Vikas Tiwari","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Vikas Tiwari","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/how-to-resolve-git-conflicts-in-magento-2-module\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/how-to-resolve-git-conflicts-in-magento-2-module\/"},"author":{"name":"Vikas Tiwari","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/5f1a3d1e180e3468f8b2a6926cecff9b"},"headline":"How to resolve git conflicts in Magento 2 Module","datePublished":"2023-05-26T12:12:02+00:00","dateModified":"2023-05-29T04:09:47+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/how-to-resolve-git-conflicts-in-magento-2-module\/"},"wordCount":501,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/how-to-resolve-git-conflicts-in-magento-2-module\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/05\/git_merge_conflict.png","keywords":["GIT","Git Conflict","Magento2"],"articleSection":["magento","Magento 2","Magento2"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/how-to-resolve-git-conflicts-in-magento-2-module\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/how-to-resolve-git-conflicts-in-magento-2-module\/","url":"https:\/\/webkul.com\/blog\/how-to-resolve-git-conflicts-in-magento-2-module\/","name":"How to resolve git conflicts in Magento 2 Module - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/how-to-resolve-git-conflicts-in-magento-2-module\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/how-to-resolve-git-conflicts-in-magento-2-module\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/05\/git_merge_conflict.png","datePublished":"2023-05-26T12:12:02+00:00","dateModified":"2023-05-29T04:09:47+00:00","description":"Git is a version control system to manage small to large projects. Git conflicts are common problem that has been faced by developers","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/how-to-resolve-git-conflicts-in-magento-2-module\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/how-to-resolve-git-conflicts-in-magento-2-module\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/how-to-resolve-git-conflicts-in-magento-2-module\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/git_merge_conflict.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/05\/git_merge_conflict.png","width":800,"height":400,"caption":"git_merge_conflict"},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/how-to-resolve-git-conflicts-in-magento-2-module\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to resolve git conflicts in Magento 2 Module"}]},{"@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\/5f1a3d1e180e3468f8b2a6926cecff9b","name":"Vikas Tiwari","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/49a0fe188f08a80af6fe7b6487da3a3e3adc1be472186b3f0eb833eff1323d10?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\/49a0fe188f08a80af6fe7b6487da3a3e3adc1be472186b3f0eb833eff1323d10?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Vikas Tiwari"},"url":"https:\/\/webkul.com\/blog\/author\/vikastiwari-magento160\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/381345","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\/362"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=381345"}],"version-history":[{"count":6,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/381345\/revisions"}],"predecessor-version":[{"id":383988,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/381345\/revisions\/383988"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=381345"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=381345"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=381345"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}