{"id":1819,"date":"2017-12-06T07:16:27","date_gmt":"2017-12-06T07:16:27","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/?p=1819"},"modified":"2025-02-01T22:47:39","modified_gmt":"2025-02-01T22:47:39","slug":"couldnt-find-host-github-com-in-the-_netrc-file-using-defaults","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/couldnt-find-host-github-com-in-the-_netrc-file-using-defaults\/","title":{"rendered":"Github Error: -Couldn&#8217;t find host github.com in the _netrc file; using defaults"},"content":{"rendered":"<p><strong>rajeshkumar created the topic: Couldn&#8217;t find host github.com in the _netrc file; using defaults<\/strong><br>\nC:\\Build_WS\\BuildDeployment\\Job1\\117&gt;git push &#8211;verbose<\/p>\n<p>* Couldn&#8217;t find host github.com in the _netrc file; using defaults<\/p>\n<p>* Adding handle: conn: 0xc7d838<\/p>\n<p>* Adding handle: send: 0<\/p>\n<p>* Adding handle: recv: 0<\/p>\n<p>* Curl_addHandleToPipeline: length: 1<\/p>\n<p>* &#8211; Conn 0 (0xc7d838) send_pipe: 1, recv_pipe: 0<\/p>\n<p>* About to connect() to github.com port 443 (#0)<\/p>\n<p>* Trying 192.30.252.130&#8230;<\/p>\n<p>* Connected to github.com (192.30.252.130) port 443 (#0)<\/p>\n<p>* successfully set certificate verify locations:<\/p>\n<p>* CAfile: C:\\Program Files (x86)\\Git\/bin\/curl-ca-bundle.crt<\/p>\n<p>CApath: none<\/p>\n<p>* SSL connection using AES128-SHA<\/p>\n<p>* Server certificate:<\/p>\n<p>* subject: businessCategory=Private Organization;<\/p>\n<p>1.3.6.1.4.1.311.60.2.1.3=US; 1.3.6.1.4.1.311.60.2.1.2=Delaware;<\/p>\n<p>serialNumber=5157550; street=548 4th Street; postalCode=94107; C=US;<\/p>\n<p>ST=California; L=San Francisco; O=GitHub, Inc.; CN=github.com<\/p>\n<p>* start date: 2014-04-08 00:00:00 GMT<\/p>\n<p>* expire date: 2016-04-12 12:00:00 GMT<\/p>\n<p>* subjectAltName: github.com matched<\/p>\n<p>* issuer: C=US; O=DigiCert Inc; OU=www.digicert.com; CN=DigiCert<\/p>\n<p>SHA2 Extended Validation Server CA<\/p>\n<p>* SSL certificate verify ok.<\/p>\n<p>&gt; GET \/EigenRisk\/RACE\/info\/refs?service=git-receive-pack HTTP\/1.1<\/p>\n<p>User-Agent: git\/1.9.5.msysgit.0<\/p>\n<p>Host: github.com<\/p>\n<p>Accept: *\/*<\/p>\n<p>Accept-Encoding: gzip<\/p>\n<p>Pragma: no-cache<\/p>\n<p>&lt; HTTP\/1.1 401 Authorization Required<\/p>\n<p>* Server GitHub Babel 2.0 is not blacklisted<\/p>\n<p>&lt; Server: GitHub Babel 2.0<\/p>\n<p>&lt; Content-Type: text\/plain<\/p>\n<p>&lt; WWW-Authenticate: Basic realm=&#8221;GitHub&#8221;<\/p>\n<p>&lt; Connection: close<\/p>\n<p>&lt;<\/p>\n<p>* Closing connection 0<\/p>\n<p>Build was aborted<\/p>\n<p>Aborted by anonymous<\/p>\n<p>Finished: ABORTED<br>\nRegards,<br>\nRajesh Kumar<br>\nTwitt me @ <a href=\"http:\/\/twitter.com\/RajeshKumarIn\" target=\"_blank\" rel=\"noopener\">twitter.com\/RajeshKumarIn<\/a><\/p>\n<p><strong>rajeshkumar replied the topic: Couldn&#8217;t find host github.com in the _netrc file; using defaults<\/strong><br>\nSolution:<br>\nAdd following line&#8230;<br>\ngit config http.postBuffer 524288000<br>\nRegards,<br>\nRajesh Kumar<br>\nTwitt me @ <a href=\"http:\/\/twitter.com\/RajeshKumarIn\" target=\"_blank\" rel=\"noopener\">twitter.com\/RajeshKumarIn<\/a><\/p>\n\n<div class=\"epyt-gallery\" data-currpage=\"1\" id=\"epyt_gallery_11571\"><iframe loading=\"lazy\"  id=\"_ytid_73398\"  width=\"760\" height=\"427\"  data-origwidth=\"760\" data-origheight=\"427\" src=\"https:\/\/www.youtube.com\/embed\/?enablejsapi=1&#038;autoplay=0&#038;cc_load_policy=0&#038;cc_lang_pref=&#038;iv_load_policy=1&#038;loop=0&#038;rel=1&#038;fs=1&#038;playsinline=0&#038;autohide=2&#038;theme=dark&#038;color=red&#038;controls=1&#038;disablekb=0&#038;\" class=\"__youtube_prefs__  no-lazyload\" title=\"YouTube player\"  data-epytgalleryid=\"epyt_gallery_11571\"  allow=\"fullscreen; accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen data-no-lazy=\"1\" data-skipgform_ajax_framebjll=\"\"><\/iframe><div class=\"epyt-gallery-list\"><div>Sorry, there was a YouTube error.<\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>rajeshkumar created the topic: Couldn&#8217;t find host github.com in the _netrc file; using defaults C:\\Build_WS\\BuildDeployment\\Job1\\117&gt;git push &#8211;verbose * Couldn&#8217;t find host github.com in the _netrc file; using defaults * Adding&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[38],"tags":[405],"class_list":["post-1819","post","type-post","status-publish","format-standard","hentry","category-git","tag-github"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/1819","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=1819"}],"version-history":[{"count":3,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/1819\/revisions"}],"predecessor-version":[{"id":25742,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/1819\/revisions\/25742"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=1819"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=1819"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=1819"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}