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?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Killing the client (Ctrl+C or any other method) won’t cause the data on the server to be corrupted, if that’s what you mean by “safe”. The server doesn’t update anything until all the blobs are transferred successfully, then it updates the refs to point to the new blobs.
Git doesn’t have any facilities to resume an interrupted transfer though, so you’ll probably have to transfer the big blob again when you have a faster connection.