The remote end hung up unexpectedly while git cloning

后端 未结 30 3051
旧时难觅i
旧时难觅i 2020-11-22 09:02

My git client repeatedly fails with the following error after trying to clone the repository for some time.

What could be the issue here?

30条回答
  •  日久生厌
    2020-11-22 09:25

    I found my problem to be with the .netrc file, if so for you too then you can do the following:

    Open your .netrc file and edit it to include github credentials. Type nano ~/netrc or gedit ~/netrc

    Then include the following: *machine github.com

    login username

    password SECRET

    machine api.github.com

    login username

    password SECRET*

    You can include your raw password there but for security purposes, generate an auth token here github token and paste it in place of your password.

    Hope this helps someone

提交回复
热议问题