I used tortoisegit to upload a relatively large file, but the network speed was slow, so I terminated it. Now I can’t push the code. How to solve it? Clean git cache? ! ? ?
After you add the video commit, the snapshot of the video has been saved, causing the snapshot of this commit to be very large. You can check the submission history with git log and find the commitid before adding the video Then git reset --hard commitid will delete the snapshot of the video But the content after the commitid will be gone
First check the current status with git status
I think there is no need to submit such a large file to git. It will be very slow every time whether it is pushed or pulled
After you add the video commit, the snapshot of the video has been saved, causing the snapshot of this commit to be very large.
You can check the submission history with git log and find the commitid before adding the video
Then git reset --hard commitid will delete the snapshot of the video
But the content after the commitid will be gone