question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

file too large, but can't remove it

See original GitHub issue

Description

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

  1. Add a file that is over 100mb
  2. 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:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

36reactions
laredozacommented, Dec 11, 2018

This worked for me:

A simple solution I used:

  1. 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.

  2. 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

7reactions
samsatocommented, Jan 2, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found