{"id":10442,"date":"2015-11-18T09:15:00","date_gmt":"2015-11-18T09:15:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/visualstudioalm\/2015\/11\/18\/git-credential-manager-for-mac-and-linux\/"},"modified":"2022-08-02T04:36:07","modified_gmt":"2022-08-02T12:36:07","slug":"git-credential-manager-for-mac-and-linux","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/devops\/git-credential-manager-for-mac-and-linux\/","title":{"rendered":"Git Credential Manager for Mac and Linux"},"content":{"rendered":"<p>Are you tired of typing in a user name and password every time you fetch from or push to remote Git repositories? Me too! We have good news! Today we are announcing the <em>open-source<\/em> release of the <a href=\"https:\/\/github.com\/Microsoft\/Git-Credential-Manager-for-Mac-and-Linux\">Git Credential Manager (GCM) for Mac and Linux<\/a>.\u00a0 This follows the release of the <a href=\"https:\/\/github.com\/Microsoft\/Git-Credential-Manager-for-Windows\">GCM for Windows<\/a>.\u00a0 We ported this tool to Mac and Linux to simplify their authentication to remote Git repositories, in particular those hosted in Visual Studio Team Services (VSTS).<\/p>\n<p>The GCM is a Git\u00a0credential helper\u00a0that assists with\u00a0<a href=\"https:\/\/azure.microsoft.com\/en-us\/documentation\/articles\/multi-factor-authentication\/\"><em>multi-factor<\/em>\u00a0authentication<\/a>. Compared to Git&#8217;s built-in credential storage (such as\u00a0<a href=\"https:\/\/git-scm.com\/book\/en\/v2\/Git-Tools-Credential-Storage\">wincred<\/a>\u00a0for Windows), which provides\u00a0single-factor\u00a0authentication support for remote Git repositories, the GCM provides multi-factor authentication support for VSTS (and soon GitHub). Secondary factors of authentication in VSTS can be configured\u00a0per-account and include phone calls, SMS, or mobile app notifications.<\/p>\n<p>After installing the GCM, when connecting to a remote Git repository hosted in VSTS for the first time, the GCM will open a web browser window so that you can authenticate and authorize access to your account (via OAuth 2.0):<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2015\/11\/5282.MSA20authentication20during20clone20for20Raisa.png\" alt=\"\" border=\"0\" \/><\/p>\n<p>This allows the GCM to use the OAuth access token to create a VSTS Personal Access Token (PAT) scoped for\u00a0<tt>vso.code_write<\/tt>, effectively granting Git permission to read and write to your Git repositories hosted in VSTS. The PAT is then stored in a file under your home directory (protected by your individual file system permissions) and will be used for future accesses to the remote Git repositories so that you are not repeatedly asked to sign in.<\/p>\n<p>At any time, you can revoke the Personal Access Token through your VSTS profile settings:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2015\/11\/7532.Personal20Access20Tokens20for20Raisa.png\" alt=\"\" border=\"0\" \/><\/p>\n<p>For more information, see the <a href=\"https:\/\/visualstudio.microsoft.comDocs\/tools\/gitcredentialmanager\" title=\"Git Credential Manager for Mac and Linux documentation\">GCM documentation<\/a> on the <a href=\"https:\/\/visualstudio.microsoft.com\">VSTS Java site<\/a> or go browse the <a href=\"https:\/\/github.com\/Microsoft\/Git-Credential-Manager-for-Mac-and-Linux\">GCM source code on GitHub<\/a>.<\/p>\n<p>You can follow the Java ALM team on <a href=\"https:\/\/twitter.com\/JavaALM\">Twitter<\/a> or on <a href=\"https:\/\/www.facebook.com\/JavaALM\">Facebook<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Are you tired of typing in a user name and password every time you fetch from or push to remote Git repositories? Me too! We have good news! Today we are announcing the open-source release of the Git Credential Manager (GCM) for Mac and Linux.\u00a0 This follows the release of the GCM for Windows.\u00a0 We [&hellip;]<\/p>\n","protected":false},"author":189,"featured_media":45953,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[228,1,225,249],"tags":[],"class_list":["post-10442","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-admin-licensing","category-devops","category-git","category-open-source"],"acf":[],"blog_post_summary":"<p>Are you tired of typing in a user name and password every time you fetch from or push to remote Git repositories? Me too! We have good news! Today we are announcing the open-source release of the Git Credential Manager (GCM) for Mac and Linux.\u00a0 This follows the release of the GCM for Windows.\u00a0 We [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts\/10442","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/users\/189"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/comments?post=10442"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts\/10442\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/media\/45953"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/media?parent=10442"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/categories?post=10442"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/tags?post=10442"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}