{"id":56840,"date":"2023-03-12T13:57:43","date_gmt":"2023-03-12T08:27:43","guid":{"rendered":"https:\/\/2thenew.xyz\/blog\/?p=56840"},"modified":"2023-03-14T14:14:27","modified_gmt":"2023-03-14T08:44:27","slug":"git-add-multiple-repositoriesbitbucket-github-to-the-same-project","status":"publish","type":"post","link":"https:\/\/2thenew.xyz\/blog\/git-add-multiple-repositoriesbitbucket-github-to-the-same-project\/","title":{"rendered":"Git: Add multiple repositories(Bitbucket, Github) to the same project."},"content":{"rendered":"<p>In this blog, we are going to learn about an important feature (migration across repositories providers) of one of the most common technologies we came across in our day-to-day development, GIT.<\/p>\n<p>I mainly used to do R&amp;D work on my private repositories, on bitbucket, as it supports unlimited private repositories space. But after some time, when I started contributing to open source, I realized that GitHub is better at it and I want to use some of my already done work. Therefore, I need to migrate some of my repositories to bitbucket.<\/p>\n<p>Prerequisites: a Bitbucket repository (where original code is present) and a GitHub repository(target repository where the code is to be moved).<\/p>\n<p>Let&#8217;s see how I achieve it:<\/p>\n<p>Step 1:\u00a0 Clone the code from bitbucket to your local system using the git clone command.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-56832 aligncenter\" src=\"\/blog\/wp-ttn-blog\/uploads\/2023\/03\/Screenshot-3-1024x576.png\" alt=\"Blog image\" width=\"526\" height=\"296\" srcset=\"https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2023\/03\/Screenshot-3-1024x576.png 1024w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2023\/03\/Screenshot-3-300x169.png 300w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2023\/03\/Screenshot-3-768x432.png 768w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2023\/03\/Screenshot-3-1536x864.png 1536w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2023\/03\/Screenshot-3-624x351.png 624w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2023\/03\/Screenshot-3.png 1920w\" sizes=\"auto, (max-width: 526px) 100vw, 526px\" \/><\/p>\n<blockquote>\n<pre>git clone https:\/\/dheerajgupta217@bitbucket.org\/dheerajgupta217\/bitbucketrepo.<\/pre>\n<p><span style=\"text-decoration: underline;\">Output<\/span>:<\/p>\n<p>git<br \/>\nCloning into &#8216;bitbucketrepo&#8217;&#8230;<br \/>\nremote: Enumerating objects: 13, done.<br \/>\nremote: Counting objects: 100% (13\/13), done.<br \/>\nremote: Compressing objects: 100% (12\/12), done.<br \/>\nremote: Total 13 (delta 2), reused 0 (delta 0), pack-reused 0<br \/>\nUnpacking objects: 100% (13\/13), 1.96 KiB | 49.00 KiB\/s, done.<\/p><\/blockquote>\n<p>Step 2:\u00a0 Move to the location where the project is cloned<\/p>\n<blockquote>\n<pre> cd bitbucketrepo\/<\/pre>\n<\/blockquote>\n<p>Step 3:\u00a0 Add the secondary repository origin with a different name (I used <strong>github<\/strong> for simplicity reasons)<\/p>\n<blockquote>\n<pre>git remote add <strong>github<\/strong> https:\/\/github.com\/dheerajgupta217\/secondary_repository.<\/pre>\n<\/blockquote>\n<p>Step 4:\u00a0 Move your master to the new repository<\/p>\n<blockquote>\n<pre> git push github master<\/pre>\n<p><span style=\"text-decoration: underline;\">Output:<\/span><\/p>\n<p>Enumerating objects: 13, done.<br \/>\nCounting objects: 100% (13\/13), done.<br \/>\nDelta compression using up to 8 threads<br \/>\nCompressing objects: 100% (12\/12), done.<br \/>\nWriting objects: 100% (13\/13), 1.98 KiB | 1015.00 KiB\/s, done.<br \/>\nTotal 13 (delta 2), reused 0 (delta 0), pack-reused 0<br \/>\nremote: Resolving deltas: 100% (2\/2), done.<br \/>\nTo https:\/\/github.com\/dheerajgupta217\/secondary_repository.git<br \/>\n* [new branch] master -&gt; master<\/p><\/blockquote>\n<p>Step 5:\u00a0 Set the URL of the new repository to the origin added.<\/p>\n<blockquote>\n<pre> git remote set-url github https:\/\/github.com\/dheerajgupta217\/secondary_repository<\/pre>\n<\/blockquote>\n<p>Step 6:\u00a0 Check if both repositories are working.<\/p>\n<blockquote>\n<pre>git branch -a<\/pre>\n<p><span style=\"text-decoration: underline;\">Output<\/span>:<\/p>\n<pre>* master\r\nremotes\/github\/master\r\nremotes\/origin\/HEAD -&gt; origin\/master\r\nremotes\/origin\/master<\/pre>\n<\/blockquote>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-56838 aligncenter\" src=\"\/blog\/wp-ttn-blog\/uploads\/2023\/03\/Screenshot-9-1024x576.png\" alt=\"Github repo\" width=\"520\" height=\"293\" srcset=\"https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2023\/03\/Screenshot-9-1024x576.png 1024w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2023\/03\/Screenshot-9-300x169.png 300w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2023\/03\/Screenshot-9-768x432.png 768w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2023\/03\/Screenshot-9-1536x864.png 1536w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2023\/03\/Screenshot-9-624x351.png 624w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2023\/03\/Screenshot-9.png 1920w\" sizes=\"auto, (max-width: 520px) 100vw, 520px\" \/><\/p>\n<p>Voila, the git migration is done<\/p>\n<p>Testing the migration activity:<\/p>\n<p>Step 1: Add a new branch to the bitbucket and push it.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-56834 aligncenter\" src=\"\/blog\/wp-ttn-blog\/uploads\/2023\/03\/Screenshot-5-1024x576.png\" alt=\"Blog image\" width=\"433\" height=\"244\" srcset=\"https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2023\/03\/Screenshot-5-1024x576.png 1024w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2023\/03\/Screenshot-5-300x169.png 300w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2023\/03\/Screenshot-5-768x432.png 768w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2023\/03\/Screenshot-5-1536x864.png 1536w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2023\/03\/Screenshot-5-624x351.png 624w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2023\/03\/Screenshot-5.png 1920w\" sizes=\"auto, (max-width: 433px) 100vw, 433px\" \/><\/p>\n<blockquote>\n<pre>git checkout -b test_branch\r\ngit push origin test_branch<\/pre>\n<\/blockquote>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-56835 aligncenter\" src=\"\/blog\/wp-ttn-blog\/uploads\/2023\/03\/Screenshot-6-1024x576.png\" alt=\"Blog image\" width=\"382\" height=\"215\" srcset=\"https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2023\/03\/Screenshot-6-1024x576.png 1024w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2023\/03\/Screenshot-6-300x169.png 300w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2023\/03\/Screenshot-6-768x432.png 768w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2023\/03\/Screenshot-6-1536x864.png 1536w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2023\/03\/Screenshot-6-624x351.png 624w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2023\/03\/Screenshot-6.png 1920w\" sizes=\"auto, (max-width: 382px) 100vw, 382px\" \/><\/p>\n<p>Step 2: Push the same branch to GitHub now.<\/p>\n<blockquote>\n<pre>git push github test_branch<\/pre>\n<\/blockquote>\n<p><span style=\"text-decoration: underline;\">Output<\/span>:<\/p>\n<blockquote>\n<pre>Total 0 (delta 0), reused 0 (delta 0), pack-reused 0\r\nremote:\r\nremote: Create a pull request for 'test_branch' on GitHub by visiting:\r\nremote: https:\/\/github.com\/dheerajgupta217\/secondary_repository\/pull\/new\/test_branch\r\nremote:\r\nTo https:\/\/github.com\/dheerajgupta217\/secondary_repository\r\n* [new branch] test_branch -&gt; test_branch<\/pre>\n<\/blockquote>\n<p><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-56837 aligncenter\" src=\"\/blog\/wp-ttn-blog\/uploads\/2023\/03\/Screenshot-8-1024x576.png\" alt=\"Blog image\" width=\"502\" height=\"282\" srcset=\"https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2023\/03\/Screenshot-8-1024x576.png 1024w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2023\/03\/Screenshot-8-300x169.png 300w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2023\/03\/Screenshot-8-768x432.png 768w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2023\/03\/Screenshot-8-1536x864.png 1536w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2023\/03\/Screenshot-8-624x351.png 624w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2023\/03\/Screenshot-8.png 1920w\" sizes=\"auto, (max-width: 502px) 100vw, 502px\" \/><\/p>\n<p>The branch and the code must be created in GitHub.<\/p>\n<p><span style=\"text-decoration: underline;\"><strong>Use Case:<\/strong><\/span><\/p>\n<p>Recently for one of our clients, this use case is being used where the code is needed to be moved to code-commit form bitbucket and the client requires his old code as well intact. Migration for it was achieved using the below-mentioned steps.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-56861\" src=\"\/blog\/wp-ttn-blog\/uploads\/2023\/03\/Screenshot-2023-03-14-135556.png\" alt=\"Blog image\" width=\"928\" height=\"553\" srcset=\"https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2023\/03\/Screenshot-2023-03-14-135556.png 928w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2023\/03\/Screenshot-2023-03-14-135556-300x179.png 300w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2023\/03\/Screenshot-2023-03-14-135556-768x458.png 768w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2023\/03\/Screenshot-2023-03-14-135556-624x372.png 624w\" sizes=\"auto, (max-width: 928px) 100vw, 928px\" \/><\/p>\n<div class=\"ap-custom-wrapper\"><\/div><!--ap-custom-wrapper-->","protected":false},"excerpt":{"rendered":"<p>In this blog, we are going to learn about an important feature (migration across repositories providers) of one of the most common technologies we came across in our day-to-day development, GIT. I mainly used to do R&amp;D work on my private repositories, on bitbucket, as it supports unlimited private repositories space. But after some time, [&hellip;]<\/p>\n","protected":false},"author":1352,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":125,"footnotes":""},"categories":[2348,1],"tags":[4279,375,503,5130],"class_list":["post-56840","post","type-post","status-publish","format-standard","hentry","category-devops-technology","category-technology","tag-bitbucket","tag-git","tag-github","tag-migration-in-repos"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"In this blog, we are going to learn about an important feature (migration across repositories providers) of one of the most common technologies we came across in our day-to-day development, GIT. I mainly used to do R&amp;D work on my private repositories, on bitbucket, as it supports unlimited private repositories space. But after some time,\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Dheeraj Gupta\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/2thenew.xyz\/blog\/git-add-multiple-repositoriesbitbucket-github-to-the-same-project\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"TO THE NEW BLOG\" \/>\n\t\t<meta property=\"og:type\" content=\"blog\" \/>\n\t\t<meta property=\"og:title\" content=\"Git: Add multiple repositories(Bitbucket, Github) to the same project. | TO THE NEW Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"In this blog, we are going to learn about an important feature (migration across repositories providers) of one of the most common technologies we came across in our day-to-day development, GIT. I mainly used to do R&amp;D work on my private repositories, on bitbucket, as it supports unlimited private repositories space. But after some time,\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/2thenew.xyz\/blog\/git-add-multiple-repositoriesbitbucket-github-to-the-same-project\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/2thenew.xyz\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/2thenew.xyz\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@tothenew\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Git: Add multiple repositories(Bitbucket, Github) to the same project. | TO THE NEW Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"In this blog, we are going to learn about an important feature (migration across repositories providers) of one of the most common technologies we came across in our day-to-day development, GIT. I mainly used to do R&amp;D work on my private repositories, on bitbucket, as it supports unlimited private repositories space. But after some time,\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/2thenew.xyz\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/git-add-multiple-repositoriesbitbucket-github-to-the-same-project\\\/#article\",\"name\":\"Git: Add multiple repositories(Bitbucket, Github) to the same project. | TO THE NEW Blog\",\"headline\":\"Git: Add multiple repositories(Bitbucket, Github) to the same project.\",\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/dheeraj-gupta\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"\\\/blog\\\/wp-ttn-blog\\\/uploads\\\/2023\\\/03\\\/Screenshot-3-1024x576.png\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/git-add-multiple-repositoriesbitbucket-github-to-the-same-project\\\/#articleImage\"},\"datePublished\":\"2023-03-12T13:57:43+05:30\",\"dateModified\":\"2023-03-14T14:14:27+05:30\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/git-add-multiple-repositoriesbitbucket-github-to-the-same-project\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/git-add-multiple-repositoriesbitbucket-github-to-the-same-project\\\/#webpage\"},\"articleSection\":\"DevOps, Technology, Bitbucket, git, github, migration in repos\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/git-add-multiple-repositoriesbitbucket-github-to-the-same-project\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"name\":\"Technology\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"position\":2,\"name\":\"Technology\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/git-add-multiple-repositoriesbitbucket-github-to-the-same-project\\\/#listItem\",\"name\":\"Git: Add multiple repositories(Bitbucket, Github) to the same project.\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/git-add-multiple-repositoriesbitbucket-github-to-the-same-project\\\/#listItem\",\"position\":3,\"name\":\"Git: Add multiple repositories(Bitbucket, Github) to the same project.\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"name\":\"Technology\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\",\"name\":\"TO THE NEW Blog\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/dheeraj-gupta\\\/#author\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/dheeraj-gupta\\\/\",\"name\":\"Dheeraj Gupta\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/git-add-multiple-repositoriesbitbucket-github-to-the-same-project\\\/#authorImage\",\"url\":\"https:\\\/\\\/newersworld-sf-static.tothenew.net\\\/prod\\\/profilePicFolder\\\/fc5f6e8f-4b4f-4bb9-957a-b285fb474faa_2898-Dheeraj-Gupta-PROFILEPICTURE.jpeg\",\"width\":96,\"height\":96,\"caption\":\"Dheeraj Gupta\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/git-add-multiple-repositoriesbitbucket-github-to-the-same-project\\\/#webpage\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/git-add-multiple-repositoriesbitbucket-github-to-the-same-project\\\/\",\"name\":\"Git: Add multiple repositories(Bitbucket, Github) to the same project. | TO THE NEW Blog\",\"description\":\"In this blog, we are going to learn about an important feature (migration across repositories providers) of one of the most common technologies we came across in our day-to-day development, GIT. I mainly used to do R&D work on my private repositories, on bitbucket, as it supports unlimited private repositories space. But after some time,\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/git-add-multiple-repositoriesbitbucket-github-to-the-same-project\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/dheeraj-gupta\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/dheeraj-gupta\\\/#author\"},\"datePublished\":\"2023-03-12T13:57:43+05:30\",\"dateModified\":\"2023-03-14T14:14:27+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\",\"name\":\"TO THE NEW Blog\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Git: Add multiple repositories(Bitbucket, Github) to the same project. | TO THE NEW Blog","description":"In this blog, we are going to learn about an important feature (migration across repositories providers) of one of the most common technologies we came across in our day-to-day development, GIT. I mainly used to do R&D work on my private repositories, on bitbucket, as it supports unlimited private repositories space. But after some time,","canonical_url":"https:\/\/2thenew.xyz\/blog\/git-add-multiple-repositoriesbitbucket-github-to-the-same-project\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/2thenew.xyz\/blog\/git-add-multiple-repositoriesbitbucket-github-to-the-same-project\/#article","name":"Git: Add multiple repositories(Bitbucket, Github) to the same project. | TO THE NEW Blog","headline":"Git: Add multiple repositories(Bitbucket, Github) to the same project.","author":{"@id":"https:\/\/2thenew.xyz\/blog\/author\/dheeraj-gupta\/#author"},"publisher":{"@id":"https:\/\/2thenew.xyz\/blog\/#organization"},"image":{"@type":"ImageObject","url":"\/blog\/wp-ttn-blog\/uploads\/2023\/03\/Screenshot-3-1024x576.png","@id":"https:\/\/2thenew.xyz\/blog\/git-add-multiple-repositoriesbitbucket-github-to-the-same-project\/#articleImage"},"datePublished":"2023-03-12T13:57:43+05:30","dateModified":"2023-03-14T14:14:27+05:30","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/2thenew.xyz\/blog\/git-add-multiple-repositoriesbitbucket-github-to-the-same-project\/#webpage"},"isPartOf":{"@id":"https:\/\/2thenew.xyz\/blog\/git-add-multiple-repositoriesbitbucket-github-to-the-same-project\/#webpage"},"articleSection":"DevOps, Technology, Bitbucket, git, github, migration in repos"},{"@type":"BreadcrumbList","@id":"https:\/\/2thenew.xyz\/blog\/git-add-multiple-repositoriesbitbucket-github-to-the-same-project\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog#listItem","position":1,"name":"Home","item":"https:\/\/2thenew.xyz\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog\/category\/technology\/#listItem","name":"Technology"}},{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog\/category\/technology\/#listItem","position":2,"name":"Technology","item":"https:\/\/2thenew.xyz\/blog\/category\/technology\/","nextItem":{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog\/git-add-multiple-repositoriesbitbucket-github-to-the-same-project\/#listItem","name":"Git: Add multiple repositories(Bitbucket, Github) to the same project."},"previousItem":{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog\/git-add-multiple-repositoriesbitbucket-github-to-the-same-project\/#listItem","position":3,"name":"Git: Add multiple repositories(Bitbucket, Github) to the same project.","previousItem":{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog\/category\/technology\/#listItem","name":"Technology"}}]},{"@type":"Organization","@id":"https:\/\/2thenew.xyz\/blog\/#organization","name":"TO THE NEW Blog","url":"https:\/\/2thenew.xyz\/blog\/"},{"@type":"Person","@id":"https:\/\/2thenew.xyz\/blog\/author\/dheeraj-gupta\/#author","url":"https:\/\/2thenew.xyz\/blog\/author\/dheeraj-gupta\/","name":"Dheeraj Gupta","image":{"@type":"ImageObject","@id":"https:\/\/2thenew.xyz\/blog\/git-add-multiple-repositoriesbitbucket-github-to-the-same-project\/#authorImage","url":"https:\/\/newersworld-sf-static.tothenew.net\/prod\/profilePicFolder\/fc5f6e8f-4b4f-4bb9-957a-b285fb474faa_2898-Dheeraj-Gupta-PROFILEPICTURE.jpeg","width":96,"height":96,"caption":"Dheeraj Gupta"}},{"@type":"WebPage","@id":"https:\/\/2thenew.xyz\/blog\/git-add-multiple-repositoriesbitbucket-github-to-the-same-project\/#webpage","url":"https:\/\/2thenew.xyz\/blog\/git-add-multiple-repositoriesbitbucket-github-to-the-same-project\/","name":"Git: Add multiple repositories(Bitbucket, Github) to the same project. | TO THE NEW Blog","description":"In this blog, we are going to learn about an important feature (migration across repositories providers) of one of the most common technologies we came across in our day-to-day development, GIT. I mainly used to do R&D work on my private repositories, on bitbucket, as it supports unlimited private repositories space. But after some time,","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/2thenew.xyz\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/2thenew.xyz\/blog\/git-add-multiple-repositoriesbitbucket-github-to-the-same-project\/#breadcrumblist"},"author":{"@id":"https:\/\/2thenew.xyz\/blog\/author\/dheeraj-gupta\/#author"},"creator":{"@id":"https:\/\/2thenew.xyz\/blog\/author\/dheeraj-gupta\/#author"},"datePublished":"2023-03-12T13:57:43+05:30","dateModified":"2023-03-14T14:14:27+05:30"},{"@type":"WebSite","@id":"https:\/\/2thenew.xyz\/blog\/#website","url":"https:\/\/2thenew.xyz\/blog\/","name":"TO THE NEW Blog","inLanguage":"en-US","publisher":{"@id":"https:\/\/2thenew.xyz\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"TO THE NEW BLOG","og:type":"blog","og:title":"Git: Add multiple repositories(Bitbucket, Github) to the same project. | TO THE NEW Blog","og:description":"In this blog, we are going to learn about an important feature (migration across repositories providers) of one of the most common technologies we came across in our day-to-day development, GIT. I mainly used to do R&amp;D work on my private repositories, on bitbucket, as it supports unlimited private repositories space. But after some time,","og:url":"https:\/\/2thenew.xyz\/blog\/git-add-multiple-repositoriesbitbucket-github-to-the-same-project\/","og:image":"https:\/\/2thenew.xyz\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","og:image:secure_url":"https:\/\/2thenew.xyz\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","twitter:card":"summary","twitter:site":"@tothenew","twitter:title":"Git: Add multiple repositories(Bitbucket, Github) to the same project. | TO THE NEW Blog","twitter:description":"In this blog, we are going to learn about an important feature (migration across repositories providers) of one of the most common technologies we came across in our day-to-day development, GIT. I mainly used to do R&amp;D work on my private repositories, on bitbucket, as it supports unlimited private repositories space. But after some time,","twitter:image":"https:\/\/2thenew.xyz\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png"},"aioseo_meta_data":{"post_id":"56840","title":null,"description":null,"keywords":[],"keyphrases":{"focus":[],"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":[],"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":{"id":"#aioseo-article-65e0625c3a201","slug":"article","graphName":"Article","label":"Article","properties":{"type":"BlogPosting","name":"#post_title","headline":"#post_title","description":"#post_excerpt","image":"","keywords":"","author":{"name":"#author_name","url":"#author_url"},"dates":{"include":true,"datePublished":"","dateModified":""}}},"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":"{\"article\":{\"articleType\":\"BlogPosting\"},\"course\":{\"name\":\"\",\"description\":\"\",\"provider\":\"\"},\"faq\":{\"pages\":[]},\"product\":{\"reviews\":[]},\"recipe\":{\"ingredients\":[],\"instructions\":[],\"keywords\":[]},\"software\":{\"reviews\":[],\"operatingSystems\":[]},\"webPage\":{\"webPageType\":\"WebPage\"}}","pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"limit_modified_date":false,"created":"2023-03-13 10:22:06","updated":"2024-02-29 10:54:20","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/2thenew.xyz\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/2thenew.xyz\/blog\/category\/technology\/\" title=\"Technology\">Technology<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tGit: Add multiple repositories(Bitbucket, Github) to the same project.\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/2thenew.xyz\/blog"},{"label":"Technology","link":"https:\/\/2thenew.xyz\/blog\/category\/technology\/"},{"label":"Git: Add multiple repositories(Bitbucket, Github) to the same project.","link":"https:\/\/2thenew.xyz\/blog\/git-add-multiple-repositoriesbitbucket-github-to-the-same-project\/"}],"_links":{"self":[{"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/posts\/56840","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/users\/1352"}],"replies":[{"embeddable":true,"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/comments?post=56840"}],"version-history":[{"count":6,"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/posts\/56840\/revisions"}],"predecessor-version":[{"id":56863,"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/posts\/56840\/revisions\/56863"}],"wp:attachment":[{"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/media?parent=56840"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/categories?post=56840"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/tags?post=56840"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}