{"id":125,"date":"2014-07-17T18:39:39","date_gmt":"2014-07-17T18:39:39","guid":{"rendered":"http:\/\/linux.suriyasuneel.com\/?p=125"},"modified":"2015-02-19T19:35:29","modified_gmt":"2015-02-19T19:35:29","slug":"git-error","status":"publish","type":"post","link":"http:\/\/linux.suriyasuneel.com\/?p=125","title":{"rendered":"Git error"},"content":{"rendered":"<p>If you get an error<br \/>\nfatal: Could not read from remote repository<br \/>\nPlease make sure that you have the correct access rights and the repository exists.<\/p>\n<p>But you can ssh to the repository through the ssh client, but your GitBash is not letting you to push the commit to the remote server.<\/p>\n<p>Issue the command<\/p>\n<pre>$ssh -p port_number username@servername\r\n<\/pre>\n<p>if you get the bad file number, remote server cannot be found, then you need to set the http_proxy variable.<\/p>\n<p>The important thing it should be config file in the .ssh folder of the git home directory as follows<\/p>\n<pre>\r\n~\/.ssh\/config\r\n<\/pre>\n<p>open git bash. issue<\/p>\n<pre>\r\ncd ~\r\n<\/pre>\n<p>this will take you the home directory. the preferred home directory in the windows7 is <\/p>\n<pre>\r\nc:\\users\\username\\Documents\r\n<\/pre>\n<p>if it is not that, then set the environment variable $HOME as the above.<br \/>\nNow go into .ssh folder as follows<\/p>\n<pre>\r\ncd .ssh\r\n<\/pre>\n<p>inside that folder make sure you create a file name config and the first line in that file should look like this<\/p>\n<pre>\r\nProxyCommand \/bin\/connect -H proxy_server:port %h %p\r\n<\/pre>\n<p>substitute the correct proxy server name and the correct port number. Save that file and then restart the git bash.<\/p>\n<p>That means there is this environment variable GIT_SSH is set to plink.exe, just delete that variable and restart the gitbash all your problems will be solved<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you get an error fatal: Could not read from remote repository Please make sure that you have the correct access rights and the repository exists. But you can ssh to the repository through the ssh client, but your GitBash is not letting you to push the commit to the remote server. Issue the command [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"_links":{"self":[{"href":"http:\/\/linux.suriyasuneel.com\/index.php?rest_route=\/wp\/v2\/posts\/125"}],"collection":[{"href":"http:\/\/linux.suriyasuneel.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/linux.suriyasuneel.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/linux.suriyasuneel.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/linux.suriyasuneel.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=125"}],"version-history":[{"count":3,"href":"http:\/\/linux.suriyasuneel.com\/index.php?rest_route=\/wp\/v2\/posts\/125\/revisions"}],"predecessor-version":[{"id":146,"href":"http:\/\/linux.suriyasuneel.com\/index.php?rest_route=\/wp\/v2\/posts\/125\/revisions\/146"}],"wp:attachment":[{"href":"http:\/\/linux.suriyasuneel.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=125"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/linux.suriyasuneel.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=125"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/linux.suriyasuneel.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=125"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}