title: Why I failed to clone a git repository?
body: <p>I'm using Git Bash 2.9.0-64-bit in win7 64bit.</p>
  
  <p>I created a git repository 'learnshell' in my own computer at home,and I pushed it to GitHub.
  Then,I wanted to clone learnshell to my computer in my company.</p>
  
  <p>But I failed, the directory is ~/home,it's not a git repository,here is my command<br>
  <code>git clone https:github.com/myname/learnshell.git</code>  </p>
  
  <p>And here is the corresponding result:</p>
  
  <blockquote>
    <p>Cloning into 'learnshell' ...<br>
    ssh: Could not resolve hostname https:Name or service not known<br>
    Fatal: Coule not read from remote repository.</p>
    
    <p>Please make sure you have the correct access rights and the repository exists.</p>
  </blockquote>
  
  <p>I'm not using ssh because my company's network doesn't support it.</p>
  
  <p>To solve this problem,I changed my directory and created an git repository named 'learnshell'.After that,I first ran command<br>
   <code>git remote add origin git@github.com:myname/learnshell.git</code>,<br>
  then I ran<br>
  <code>git clone https://github.com/myname/learnshell</code>.<br>
  This time,the clone operation succeeded.<br>
  What's interesting is that after I changed my directory back to ~/home and ran the clone command,it succeeded too.</p>
  
  <p>I don't know what's really happening beneath this phenomenon.So,Which git command makes the clone from a failure to a success?</p>