How to resume a git pull/clone after a hung up unexpectedly?

前端 未结 2 752
醉酒成梦
醉酒成梦 2021-02-02 08:00

I do a git pull/clone to some repository (mainly github ones). Sometimes after a few minutes the download crashes.

Here is a log.

remote: Counting object         


        
相关标签:
2条回答
  • 2021-02-02 08:38

    If a pull hung up, it will not write any changes to your filesystem. This is because, if it would, your local repository would not be in a stable state.

    There is no way to resume a pull/clone. So your only choice is to pull/clone again.

    0 讨论(0)
  • 2021-02-02 08:38

    cd into the the main directory and run

    git fetch
    

    tested only on linux

    0 讨论(0)
提交回复
热议问题