{"id":298,"date":"2014-03-08T12:35:28","date_gmt":"2014-03-08T12:35:28","guid":{"rendered":"http:\/\/nikola-breznjak.com\/blog\/?p=298"},"modified":"2015-08-20T11:43:03","modified_gmt":"2015-08-20T11:43:03","slug":"git-push-origin-master-could-not-read-username-for-httpgithub-com","status":"publish","type":"post","link":"https:\/\/nikola-breznjak.com\/blog\/quick-tips\/git-push-origin-master-could-not-read-username-for-httpgithub-com\/","title":{"rendered":"Git push origin master could not read username for http:\/\/github.com"},"content":{"rendered":"<p>If you clone your project on another computer and try to do:<\/p>\n<pre class=\"lang:default decode:true\">git push origin master<\/pre>\n<p>and you get and error like:<\/p>\n<blockquote><p>fatal: could not read Username for &#8216;https:\/\/github.com&#8217;: No such file or directory<\/p><\/blockquote>\n<p>then you can solve this by executing the following command:<\/p>\n<pre class=\"lang:default decode:true\">git remote set-url origin git@github.com:username\/repo.git<\/pre>\n<p>where, of course,<span class=\"lang:default decode:true  crayon-inline \">username<\/span>\u00a0 and <span class=\"lang:default decode:true  crayon-inline \">repo<\/span>\u00a0\u00a0depend on your settings.<\/p>\n<p>For more info, check <a href=\"http:\/\/stackoverflow.com\/questions\/6565357\/git-push-requires-username-and-password\">this StackOverflow question<\/a>.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you clone your project on another computer and try to do: git push origin master and you get and error like: fatal: could not read Username for&hellip;<\/p>\n","protected":false},"author":1,"featured_media":300,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[18],"class_list":["post-298","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-quick-tips","tag-github"],"_links":{"self":[{"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/posts\/298","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/comments?post=298"}],"version-history":[{"count":3,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/posts\/298\/revisions"}],"predecessor-version":[{"id":303,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/posts\/298\/revisions\/303"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/media\/300"}],"wp:attachment":[{"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/media?parent=298"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/categories?post=298"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/tags?post=298"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}