title: Receiving fatal: could not read Username for 'https://github.com': terminal prompts disabled while building project in terminal
body: <p>I have started working on Golang project. While building with make, I am getting following error:</p>
  
  <pre><code>fatal: could not read Username for 'https://github.com': terminal prompts disabled
  </code></pre>
  
  <p>To handle this, I have done following after going through similar post <a href="https://stackoverflow.com/questions/32232655/go-get-results-in-terminal-prompts-disabled-error-for-github-private-repo">go get results in &#39;terminal prompts disabled&#39; error for github private repo</a> :</p>
  
  <pre><code>export GIT_TERMINAL_PROMPT=1
  </code></pre>
  
  <p>But this did not solve the problem, now it seems to be asking username and password in infinite loop. </p>
  
  <p>My git config is as follows:</p>
  
  <pre><code>$git config --list
  
  remote.origin.url=git@github.com:GolangProjects/Project1.git
  </code></pre>
  
  <p>Even after this config, why it keeps on using https instead of SSH, not getting any clue. Please help.</p>