{"id":2381,"date":"2016-08-10T15:38:53","date_gmt":"2016-08-10T22:38:53","guid":{"rendered":"http:\/\/mattfife.com\/?p=2381"},"modified":"2016-08-10T15:38:53","modified_gmt":"2016-08-10T22:38:53","slug":"gits-git-protocol-fails-but-git-http-succeeds","status":"publish","type":"post","link":"https:\/\/mattfife.com\/?p=2381","title":{"rendered":"git&#8217;s git:\/\/ protocol fails, but git http:\/\/ succeeds"},"content":{"rendered":"<p>A number of source websites expose their source via the git:\/\/ protocol. Unfortunately, the git protocol recently broke on one I used, but the git http:\/\/ protocol was working. Instead of changing my\u00a0fetching scripts, I\u00a0found\u00a0a clever url replacement in git using the following command:<\/p>\n<pre><code>git config --global url.https:\/\/gitsite.com\/.insteadOf git:\/\/gitsite.com\/\r\n<\/code><\/pre>\n<p>This allows you to change the protocol per URL instead of globally. Exactly what I needed.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A number of source websites expose their source via the git:\/\/ protocol. Unfortunately, the git protocol recently broke on one I used, but the git http:\/\/ protocol was working. Instead of changing my\u00a0fetching scripts, I\u00a0found\u00a0a clever url replacement in git using the following command: git config &#8211;global url.https:\/\/gitsite.com\/.insteadOf git:\/\/gitsite.com\/ This allows you to change the protocol per URL instead of globally. Exactly what I needed.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"genivi.org git: protocol fails, but http succeeds","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[6,5],"tags":[],"class_list":["post-2381","post","type-post","status-publish","format-standard","hentry","category-technicalproblemsolutions","category-technical"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4WECr-Cp","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/mattfife.com\/index.php?rest_route=\/wp\/v2\/posts\/2381","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mattfife.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mattfife.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mattfife.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mattfife.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2381"}],"version-history":[{"count":1,"href":"https:\/\/mattfife.com\/index.php?rest_route=\/wp\/v2\/posts\/2381\/revisions"}],"predecessor-version":[{"id":2382,"href":"https:\/\/mattfife.com\/index.php?rest_route=\/wp\/v2\/posts\/2381\/revisions\/2382"}],"wp:attachment":[{"href":"https:\/\/mattfife.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2381"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mattfife.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2381"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mattfife.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2381"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}