git - cannot push code
仅有的幸福
仅有的幸福 2017-05-02 09:37:53
0
3
794

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? ! ? ?

仅有的幸福
仅有的幸福

reply all(3)
巴扎黑

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template