{"id":3051,"date":"2012-08-13T08:00:00","date_gmt":"2012-08-13T08:00:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/bharry\/2012\/08\/13\/announcing-git-integration-with-tfs\/"},"modified":"2024-05-01T12:56:54","modified_gmt":"2024-05-01T19:56:54","slug":"announcing-git-integration-with-tfs","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/bharry\/announcing-git-integration-with-tfs\/","title":{"rendered":"Announcing Git Integration with TFS"},"content":{"rendered":"<p>Distributed Version Control (DVCS) has a growing following. It enables a set of workflows that can be very handy and Git is an increasingly popular DVCS solution.\u00a0 Today, we are announcing Git-tf, a solution that enables you to work locally with a Git repo \u2013 edit, commit, revert, branch, merge, etc.\u00a0 and then \u201csync up\u201d with a central TFS repository.\u00a0 In this way, you can have the best of both DVCS and TFS.<\/p>\n<p>Git-tf works great in hybrid teams.\u00a0 You may have a TFS project that\u2019s been running for a while.\u00a0 Most of your dev team is using our Visual Studio or Eclipse integration and perfectly happy.\u00a0 At the same time, you\u2019ve got a few people who want or need to use Git.\u00a0 Maybe they are the XCode developers on the team and they like the native Git integration in the XCode IDE.\u00a0 Git-tf allows them to work with XCode\u2019s Git integration and collaborate with other team members through TFS.<\/p>\n<p>The integration takes the form of a new command line tool called \u201cGit-tf\u201d.\u00a0 Git-tf works with a standard Git install and getting started is super easy. Just visit our <a href=\"http:\/\/go.microsoft.com\/fwlink\/?LinkId=261658\">download page<\/a> and checkout Git-TF_Getting_Started.html.\u00a0 Installing Git-tf is as simple as unzipping the Zip.\u00a0 At the moment Git-tf won\u2019t work with <a href=\"http:\/\/www.tfspreview.com\/\">Team Foundation Service<\/a> \u2013 it will only work with an on premises TFS server \u2013 either 2008, 2010 or 2012. However we are working on adding support for Team Foundation Service and I expect it will be available in the next sprint deployment.<\/p>\n<p>Here\u2019s a short video done by Matt Mitrik and Brian Keller with some info and a nice demo \u2013 it\u2019s about 15 minutes.\u00a0 Note, the TFSPreview support demoed isn\u2019t quite available yet \u2013 but it will be soon.\u00a0 For now you can use it with your on premises TFS.<\/p>\n<p>Once you\u2019ve installed Git and Git-tf, you can create a local Git repo from a TFS server with git tf clone.\u00a0 You can always pull down the latest changes from TFS with \u201cgit tf fetch\u201d and you can check your local Git changes into TFS with git tf checkin.\u00a0 Below is a screenshot showing the list of currently supported commands.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/bharry\/wp-content\/uploads\/sites\/8\/2012\/08\/6354.image_thumb_16B3FCA6.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-16022\" src=\"https:\/\/devblogs.microsoft.com\/bharry\/wp-content\/uploads\/sites\/8\/2012\/08\/6354.image_thumb_16B3FCA6.png\" alt=\"Image 6354 image thumb 16B3FCA6\" width=\"537\" height=\"185\" srcset=\"https:\/\/devblogs.microsoft.com\/bharry\/wp-content\/uploads\/sites\/8\/2012\/08\/6354.image_thumb_16B3FCA6.png 537w, https:\/\/devblogs.microsoft.com\/bharry\/wp-content\/uploads\/sites\/8\/2012\/08\/6354.image_thumb_16B3FCA6-300x103.png 300w\" sizes=\"(max-width: 537px) 100vw, 537px\" \/><\/a><\/p>\n<p>Git-tf is a cross platform implementation so it will run on Windows, Mac, Linux, etc.<\/p>\n<p>In addition to releasing the Git-tf tool today on our download center, we are also launching a <a href=\"http:\/\/gittf.codeplex.com\/\">Git-tf open source project<\/a> so that the community can build upon it and make it better. We plan to be actively involved in the future of the OSS project so we are really looking forward to working with you on it.\u00a0 Check out the new project on Codeplex.<\/p>\n<p>If you already live in both the Git and TFS worlds, this new tool may look eerily like the existing <a href=\"https:\/\/github.com\/git-tfs\/git-tfs\">Git-tfs OSS project<\/a>.\u00a0 Well, you are right \u2013 they are very similar.\u00a0 As starting a new OSS project that\u2019s very like another is generally considered pretty bad form, I want to say a few words about this.\u00a0 When we decided that we really wanted to have a good Git\/TFS integration solution, the first thing we thought of was to reach out to Matt Burke who owns the existing Git-tfs solution.\u00a0 Matt Mitrik had a great conversation with him about what we were looking to do and the general direction he was taking the project.\u00a0 One of our big requirements was to create a cross platform solution that works just as well on Windows, Linux or MacOS.\u00a0 That really wasn\u2019t in the sights for the existing Git-tfs project and, together, we agreed that separate, cross platform solution made sense.\u00a0 Hence Git-tf was born.<\/p>\n<p>We hope you are going to like it and encourage you to give it a try \u2013 it\u2019s a great way to get the best of both DVCS and TFS\u2019s integrated lifecycle management capabilities.\u00a0 As always, we are eager to hear your feedback.<\/p>\n<p>Brian<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Distributed Version Control (DVCS) has a growing following. It enables a set of workflows that can be very handy and Git is an increasingly popular DVCS solution.\u00a0 Today, we are announcing Git-tf, a solution that enables you to work locally with a Git repo \u2013 edit, commit, revert, branch, merge, etc.\u00a0 and then \u201csync up\u201d [&hellip;]<\/p>\n","protected":false},"author":244,"featured_media":14617,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[11,5],"class_list":["post-3051","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-announcement","tag-tfs"],"acf":[],"blog_post_summary":"<p>Distributed Version Control (DVCS) has a growing following. It enables a set of workflows that can be very handy and Git is an increasingly popular DVCS solution.\u00a0 Today, we are announcing Git-tf, a solution that enables you to work locally with a Git repo \u2013 edit, commit, revert, branch, merge, etc.\u00a0 and then \u201csync up\u201d [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/bharry\/wp-json\/wp\/v2\/posts\/3051","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/bharry\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/bharry\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/bharry\/wp-json\/wp\/v2\/users\/244"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/bharry\/wp-json\/wp\/v2\/comments?post=3051"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/bharry\/wp-json\/wp\/v2\/posts\/3051\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/bharry\/wp-json\/wp\/v2\/media\/14617"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/bharry\/wp-json\/wp\/v2\/media?parent=3051"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/bharry\/wp-json\/wp\/v2\/categories?post=3051"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/bharry\/wp-json\/wp\/v2\/tags?post=3051"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}