Why is this git clone command failing?

后端 未结 9 2101
挽巷
挽巷 2021-02-03 23:40

Trying to use the git clone command. My understanding (please correct if wrong) was that in order to host a Git repository you just need a machine running ssh and t

9条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-03 23:43

    I tried everything, I verified my keys, paths and tools versions. Still, I was unable to clone a repo from github using "git shell" "git gui" and "tortoise git".

    I downloaded and installed "Visual Studio Tools for Git" (which required "VS2012 Update 2 CTP") and was able to clone the repo from inside Visual Studio:

    • Click "Main Menu->View->Team Explorer"
    • Click "Team Explorer->Connect To Team Projects"
    • Click "Team Explorer->Local Git Repositories Section->Clone"
    • Enter URL of Git Repo to Clone (yellow box)
    • Enter or Browse for Local Folder to Clone into
    • Click "Clone"

    After a moment, the repo was cloned. I've successfully cloned a half dozen repo's this way where msysgit, github and tortoisegit all failed to work as expected.

提交回复
热议问题