{"id":6723,"date":"2018-01-18T13:12:11","date_gmt":"2018-01-18T15:12:11","guid":{"rendered":"http:\/\/gianfratti.com\/?p=6723"},"modified":"2018-01-18T13:25:39","modified_gmt":"2018-01-18T15:25:39","slug":"devops-migrando-projeto-tfvc-para-git-vsts","status":"publish","type":"post","link":"https:\/\/gianfratti.com\/index.php\/devops-migrando-projeto-tfvc-para-git-vsts\/","title":{"rendered":"DevOps \u2013 Migrando Projeto TFVC para GIT \u2013 VSTS"},"content":{"rendered":"<p>Esse artigo ir\u00e1 demonstrar como realizar a migra\u00e7\u00e3o de um projeto TFVC para o GIT de duas formas.<!--more--><\/p>\n<p><strong><u>\u2013 Por Comandos<\/u><\/strong><\/p>\n<p>Realize o download da ferramenta GIT para Windows:<\/p>\n<p><a title=\"https:\/\/git-for-windows.github.io\/\" href=\"https:\/\/git-for-windows.github.io\/\">https:\/\/git-for-windows.github.io\/<\/a><\/p>\n<p>Em seguida instale-a.<\/p>\n<p><a href=\"https:\/\/qualidadeeti.files.wordpress.com\/2017\/11\/image6.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6725\" src=\"http:\/\/gianfratti.com\/wp-content\/uploads\/2018\/01\/VSTS_Git_01.png\" alt=\"\" width=\"502\" height=\"384\" srcset=\"https:\/\/gianfratti.com\/wp-content\/uploads\/2018\/01\/VSTS_Git_01.png 502w, https:\/\/gianfratti.com\/wp-content\/uploads\/2018\/01\/VSTS_Git_01-300x229.png 300w\" sizes=\"auto, (max-width: 502px) 100vw, 502px\" \/><\/a><\/p>\n<p>Depois realize o download da ferramenta GIT-TF:<\/p>\n<p><a title=\"https:\/\/gittf.codeplex.com\/releases\/view\/116074\" href=\"https:\/\/gittf.codeplex.com\/releases\/view\/116074\">https:\/\/gittf.codeplex.com\/releases\/view\/116074<\/a><\/p>\n<p>Extraia no diret\u00f3rio GIT-TF<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6726\" src=\"http:\/\/gianfratti.com\/wp-content\/uploads\/2018\/01\/VSTS_Git_02.png\" alt=\"\" width=\"625\" height=\"436\" srcset=\"https:\/\/gianfratti.com\/wp-content\/uploads\/2018\/01\/VSTS_Git_02.png 625w, https:\/\/gianfratti.com\/wp-content\/uploads\/2018\/01\/VSTS_Git_02-170x120.png 170w, https:\/\/gianfratti.com\/wp-content\/uploads\/2018\/01\/VSTS_Git_02-300x209.png 300w\" sizes=\"auto, (max-width: 625px) 100vw, 625px\" \/><\/p>\n<p>Crie um diret\u00f3rio chamado GIT<\/p>\n<p>Depois v\u00e1 em Propriedades do Sistema \u2013 Avan\u00e7ado \u2013 V\u00e1ri\u00e1veis de Ambiente \u2013 V\u00e1ri\u00e1veis do Sistema \u2013 Path e insria o caminho C:\\GIT-TF<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6727\" src=\"http:\/\/gianfratti.com\/wp-content\/uploads\/2018\/01\/VSTS_Git_03.png\" alt=\"\" width=\"790\" height=\"572\" srcset=\"https:\/\/gianfratti.com\/wp-content\/uploads\/2018\/01\/VSTS_Git_03.png 790w, https:\/\/gianfratti.com\/wp-content\/uploads\/2018\/01\/VSTS_Git_03-300x217.png 300w, https:\/\/gianfratti.com\/wp-content\/uploads\/2018\/01\/VSTS_Git_03-768x556.png 768w\" sizes=\"auto, (max-width: 790px) 100vw, 790px\" \/><\/p>\n<p>Depois v\u00e1 no seu prompt de comando, como administrador, v\u00e1 no diret\u00f3rio GIT e clone seu projeto digitando o comando:<\/p>\n<p>git-tf clone <a href=\"https:\/\/myaccount.visualstudio.com\/collection\">https:\/\/myaccount.visualstudio.com\/collection<\/a> $\/MeuProjeto\/MinhaBranch<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6728\" src=\"http:\/\/gianfratti.com\/wp-content\/uploads\/2018\/01\/VSTS_Git_04.png\" alt=\"\" width=\"668\" height=\"330\" srcset=\"https:\/\/gianfratti.com\/wp-content\/uploads\/2018\/01\/VSTS_Git_04.png 668w, https:\/\/gianfratti.com\/wp-content\/uploads\/2018\/01\/VSTS_Git_04-300x148.png 300w\" sizes=\"auto, (max-width: 668px) 100vw, 668px\" \/><\/p>\n<p>Em seguida, no TFS crie um Reposit\u00f3rio GIT<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6729\" src=\"http:\/\/gianfratti.com\/wp-content\/uploads\/2018\/01\/VSTS_Git_05.png\" alt=\"\" width=\"288\" height=\"315\" srcset=\"https:\/\/gianfratti.com\/wp-content\/uploads\/2018\/01\/VSTS_Git_05.png 288w, https:\/\/gianfratti.com\/wp-content\/uploads\/2018\/01\/VSTS_Git_05-274x300.png 274w\" sizes=\"auto, (max-width: 288px) 100vw, 288px\" \/><\/p>\n<p>Depois de criado, copie a URL:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6730\" src=\"http:\/\/gianfratti.com\/wp-content\/uploads\/2018\/01\/VSTS_Git_06.png\" alt=\"\" width=\"1002\" height=\"264\" srcset=\"https:\/\/gianfratti.com\/wp-content\/uploads\/2018\/01\/VSTS_Git_06.png 1002w, https:\/\/gianfratti.com\/wp-content\/uploads\/2018\/01\/VSTS_Git_06-300x79.png 300w, https:\/\/gianfratti.com\/wp-content\/uploads\/2018\/01\/VSTS_Git_06-768x202.png 768w\" sizes=\"auto, (max-width: 1002px) 100vw, 1002px\" \/><\/p>\n<p>V\u00e1 no diret\u00f3rio que voc\u00ea clonou o reposit\u00f3rio, depois digite o comando GIT REMOTE ADD ORIGIN e cole o endere\u00e7o que voc\u00ea acabou de copiar.<\/p>\n<p>git remote add origin <a href=\"https:\/\/devopsdemonstration.visualstudio.com\/Projeto%20Exemplo\/\">https:\/\/devopsdemonstration.visualstudio.com\/Projeto%20Exemplo\/<\/a><\/p>\n<p>Depois digite o comando:<\/p>\n<p>git push origin master<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6731\" src=\"http:\/\/gianfratti.com\/wp-content\/uploads\/2018\/01\/VSTS_Git_07.png\" alt=\"\" width=\"665\" height=\"328\" srcset=\"https:\/\/gianfratti.com\/wp-content\/uploads\/2018\/01\/VSTS_Git_07.png 665w, https:\/\/gianfratti.com\/wp-content\/uploads\/2018\/01\/VSTS_Git_07-300x148.png 300w\" sizes=\"auto, (max-width: 665px) 100vw, 665px\" \/><\/p>\n<p>Depois acesse seu reposit\u00f3rio e veja se a importa\u00e7\u00e3o ocorreu normalmente.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6732\" src=\"http:\/\/gianfratti.com\/wp-content\/uploads\/2018\/01\/VSTS_Git_08.png\" alt=\"\" width=\"1024\" height=\"263\" srcset=\"https:\/\/gianfratti.com\/wp-content\/uploads\/2018\/01\/VSTS_Git_08.png 1024w, https:\/\/gianfratti.com\/wp-content\/uploads\/2018\/01\/VSTS_Git_08-300x77.png 300w, https:\/\/gianfratti.com\/wp-content\/uploads\/2018\/01\/VSTS_Git_08-768x197.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p><strong><u>\u2013 Pelo Portal do VSTS<\/u><\/strong><\/p>\n<p>Abra seu Projeto no VSTS<\/p>\n<p><a href=\"https:\/\/qualidadeeti.files.wordpress.com\/2017\/11\/image14.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6738\" src=\"http:\/\/gianfratti.com\/wp-content\/uploads\/2018\/01\/VSTS_Git_13.png\" alt=\"\" width=\"508\" height=\"263\" srcset=\"https:\/\/gianfratti.com\/wp-content\/uploads\/2018\/01\/VSTS_Git_13.png 508w, https:\/\/gianfratti.com\/wp-content\/uploads\/2018\/01\/VSTS_Git_13-300x155.png 300w\" sizes=\"auto, (max-width: 508px) 100vw, 508px\" \/><\/a><\/p>\n<p>Em seguida v\u00e1 em <strong>Import Repository<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6733\" src=\"http:\/\/gianfratti.com\/wp-content\/uploads\/2018\/01\/VSTS_Git_09.png\" alt=\"\" width=\"463\" height=\"293\" srcset=\"https:\/\/gianfratti.com\/wp-content\/uploads\/2018\/01\/VSTS_Git_09.png 463w, https:\/\/gianfratti.com\/wp-content\/uploads\/2018\/01\/VSTS_Git_09-300x190.png 300w\" sizes=\"auto, (max-width: 463px) 100vw, 463px\" \/><\/p>\n<p>Selecione as op\u00e7\u00f5es, sendo Origem TFVC, tempo de hist\u00f3rico de mudan\u00e7as at\u00e9 180 dias atr\u00e1s e Path o caminho de seu reposit\u00f3rio atual.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6734\" src=\"http:\/\/gianfratti.com\/wp-content\/uploads\/2018\/01\/VSTS_Git_10.png\" alt=\"\" width=\"546\" height=\"582\" srcset=\"https:\/\/gianfratti.com\/wp-content\/uploads\/2018\/01\/VSTS_Git_10.png 546w, https:\/\/gianfratti.com\/wp-content\/uploads\/2018\/01\/VSTS_Git_10-281x300.png 281w\" sizes=\"auto, (max-width: 546px) 100vw, 546px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6735\" src=\"http:\/\/gianfratti.com\/wp-content\/uploads\/2018\/01\/VSTS_Git_11.png\" alt=\"\" width=\"637\" height=\"414\" srcset=\"https:\/\/gianfratti.com\/wp-content\/uploads\/2018\/01\/VSTS_Git_11.png 637w, https:\/\/gianfratti.com\/wp-content\/uploads\/2018\/01\/VSTS_Git_11-300x195.png 300w\" sizes=\"auto, (max-width: 637px) 100vw, 637px\" \/><\/p>\n<p>Depois verifique seu novo reposit\u00f3rio.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6736\" src=\"http:\/\/gianfratti.com\/wp-content\/uploads\/2018\/01\/VSTS_Git_12.png\" alt=\"\" width=\"612\" height=\"318\" srcset=\"https:\/\/gianfratti.com\/wp-content\/uploads\/2018\/01\/VSTS_Git_12.png 612w, https:\/\/gianfratti.com\/wp-content\/uploads\/2018\/01\/VSTS_Git_12-300x156.png 300w\" sizes=\"auto, (max-width: 612px) 100vw, 612px\" \/><\/p>\n<p>Fonte: <a href=\"https:\/\/qualidadeeti.wordpress.com\/2017\/11\/05\/devops-migrando-projeto-tfvc-para-git-vsts\/\" target=\"_blank\" rel=\"noopener\">https:\/\/qualidadeeti.wordpress.com\/2017\/11\/05\/devops-migrando-projeto-tfvc-para-git-vsts\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Esse artigo ir\u00e1 demonstrar como realizar a migra\u00e7\u00e3o de um projeto TFVC para o GIT de duas formas.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[2,180,20,182],"tags":[],"class_list":["post-6723","post","type-post","status-publish","format-standard","hentry","category-net-framework","category-alm","category-dicas","category-git"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/gianfratti.com\/index.php\/wp-json\/wp\/v2\/posts\/6723","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gianfratti.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gianfratti.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gianfratti.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gianfratti.com\/index.php\/wp-json\/wp\/v2\/comments?post=6723"}],"version-history":[{"count":3,"href":"https:\/\/gianfratti.com\/index.php\/wp-json\/wp\/v2\/posts\/6723\/revisions"}],"predecessor-version":[{"id":6739,"href":"https:\/\/gianfratti.com\/index.php\/wp-json\/wp\/v2\/posts\/6723\/revisions\/6739"}],"wp:attachment":[{"href":"https:\/\/gianfratti.com\/index.php\/wp-json\/wp\/v2\/media?parent=6723"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gianfratti.com\/index.php\/wp-json\/wp\/v2\/categories?post=6723"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gianfratti.com\/index.php\/wp-json\/wp\/v2\/tags?post=6723"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}