Git: Stop git push

前端 未结 3 919
梦谈多话
梦谈多话 2021-02-01 14:59

I\'m pushing a large file to git, but have a very slow connection. What is the safest way to terminate this push (mid-push), and resume it when I have a better connection?

3条回答
  •  梦毁少年i
    2021-02-01 15:36

    I believe git push is atomic, meaning that if you just Ctrl-C out of the operation, the remote repository will be in its original state, prior to the push. This also means that, when you do the push again, it will be starting over from the beginning. But it doesn't sound like that's necessarily a problem for you.

提交回复
热议问题