search

Home  >  Q&A  >  body text

git - cannot push code

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

仅有的幸福仅有的幸福2875 days ago836

reply all(3)I'll reply

  • 巴扎黑

    巴扎黑2017-05-02 09:39:53

    First check the current status with git status

    reply
    0
  • 高洛峰

    高洛峰2017-05-02 09:39:53

    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

    reply
    0
  • 仅有的幸福

    仅有的幸福2017-05-02 09:39:53

    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

    reply
    0
  • Cancelreply