git push failing for Visual Studio 2022

William Johnston 106 Reputation points
2025-06-12T13:26:27.0966667+00:00

Hello,

A git push request is failing for large zip files in the solution directory.

However, I moved all zip files do a different directory.

What am I missing?

Attached is the output.

Again, I am using Visual Studio 2022.

williamj

Developer technologies | Visual Studio | Debugging
{count} votes

2 answers

Sort by: Most helpful
  1. William Johnston 106 Reputation points
    2025-06-12T14:15:53.8466667+00:00

    Hello,

    I was creating the git repository for the solution directory.

    I used an LLM to assist me.

    Thanks anyway.

    williamj


  2. Varsha Dundigalla(INFOSYS LIMITED) 3,725 Reputation points Microsoft External Staff
    2025-11-14T12:50:43.7466667+00:00

    Thank you for reaching out.

    Even after moving the ZIP files, if they were committed earlier, they remain in the Git history. GitHub checks the entire push, not just the latest commit, so the size limit (100 MB) still applies.

    • Remove Large Files from History
      Use git filter-repo (recommended) or BFG to clean previous commits:
      • Shell git filter-repo --path "*.zip" --invert-paths Then force push:
    • git push origin --force Ignore Future ZIP Files
      • Add to .gitignor
    • *.zip

    For Files You Need to Keep

    Use Git LFS:

     `git lfs install`
    

    Please let us know if you require any further assistance, we’re happy to help.

    If you found this information useful, kindly mark this as "Accept Answer".


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.