search

Home  >  Q&A  >  body text

git clone reports no error but cannot clone it

When I read pro git again, I wanted to clone according to the code in the book


But what pops up on git bash is like this


That is, cloning into 'grit' is displayed and then disappears
Later, I changed git to https protocol and I can clone it
I found that my github did not add the public key, so I generated the public key and added it to githut again
Then I used the git protocol for clong, but in git Display again in bash


That is, cloning into 'grit' is displayed and then disappears

習慣沉默習慣沉默2811 days ago839

reply all(2)I'll reply

  • 天蓬老师

    天蓬老师2017-05-02 09:35:52

    Since you added the public key, use ssh -T git@github.com to test and analyze it,
    similar to the following
    http://mqing720.blog.163.com/blog/static/2822000020152157483265/

    reply
    0
  • 世界只因有你

    世界只因有你2017-05-02 09:35:52

    The address structures of the two protocols are different
    https is https://github.com/schacon/grit.git
    git is git://github.com:schacon/grit.git

    reply
    0
  • Cancelreply