file too large, but can't remove it
See original GitHub issueDescription
Uploaded a file that exceeds size of a file I can upload. But I can’t remove it from the history when it asks me to, so whenever I try to push it tells me that I am trying to push a file that is too large and none of my files get pushed.
Version
1.0.13
Windows 10
Steps to Reproduce
- Add a file that is over 100mb
- Commit and push
Expected behavior: [What you expected to happen]
Actual behavior: [What actually happened]
Reproduces how often: [What percentage of the time does it reproduce?]
Logs
Additional Information
Issue Analytics
- State:
- Created 6 years ago
- Reactions:3
- Comments:12 (5 by maintainers)
Top Results From Across the Web
Cannot delete large file... HELP! - Microsoft Community
Hi HåkonLimseth, Right click that file, then press Shift whilst clicking delete - that will bypass the recycle bin and delete the file...
Read more >File too large for USB drive? Here is how to fix it.
Press Start to begin the formatting, and when it's done, press Close to dismiss the Format screen. Now you should be able to...
Read more >Fix 'File Is Too Large for Destination File System ... - EaseUS
Get 'The file is too large for the destination file system' error message while copying larger files with size more than 4GB to...
Read more >How To Fix 'file too large for destination file system' Error in ...
Fix 'file too large for destination file system' errors in Windows ; Next, right-click it in Windows Explorer and select Format. Windows menu ......
Read more >4 Ways to Fix File Is Too Large for the Destination File System ...
To fix the errors and transfer files successfully, the only solution is to replace the file system of your hard drive from FAT32...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This worked for me:
A simple solution I used:
Do
git reset HEAD^
for as many commits you want to undo, it will keep your changes and your actual state of your files, just flushing the commits of them.Once the commits are undone, you can think about how to commit your files in a better way, e.g.: removing/ignoring the huge files and then adding what you want and then committing again. Or use Git LFS to track those huge files.
https://stackoverflow.com/questions/20002557/how-to-remove-a-too-large-file-in-a-commit-when-my-branch-is-ahead-of-master-by
The solution that worked for me was to delete the entire local modified repository. Re-clone the Github repository. Restore my changes and then perform the commit and push.