Linked Questions
352 questions linked to/from How can I remove/delete a large file from the commit history in the Git repository?
145
votes
3
answers
109k
views
How do I remove a big file wrongly committed in git [duplicate]
Possible Duplicate:
How to purge a huge file from commits history in Git?
I did a stupid thing. Imagine that I committed a 100MB file. Then I see this and delete this file and commit again. This ...
15
votes
2
answers
13k
views
Can I remove the initial commit from a Git repo? [duplicate]
It seems that my initial commit is eating up 90% of the space, since it accidentally got made with quite a lot of media files in it. Is there a way to remove just the first commit from local and ...
9
votes
2
answers
12k
views
git - how to remove a file that is too big from my current commit [duplicate]
When I do the following:
git add *
git commit -m "msg"
git push origin develop
I get the following errors:
Counting objects: 25, done.
Delta compression using up to 4 threads.
Compressing objects: ...
1
vote
1
answer
7k
views
How to delete all files > 1 Mb from the history (but keep them in the repository) [duplicate]
I have a repository with many big files (psd, exe, pdf, etc.) and every time I commit an update of those files, the git .pack file grow drastically to keep the history. How can I delete all files > ...
3
votes
3
answers
11k
views
Completely removing a folder from git [duplicate]
To remove a folder named build from git I use:
git rm --cached -r build
As I learned from this answer.
However, IIUC, the directory remains in the git's database.
I tested the matter:
Initialised a ...
5
votes
1
answer
4k
views
When git push to remote repo get error "File java_pid66619.hprof is 661.61 MB; this exceeds GitHub's file size limit of 100.00 MB" [duplicate]
I am developing a Java AWT application with Intellij IDE. After I git committed my code, I push to the repository:
me@mine-laptop myproject (master)$ git push origin master
Enumerating objects: 77, ...
1
vote
3
answers
13k
views
Can't delete file from the git repository? [duplicate]
I have added file >100 Mb to my git repository and it worked in local git. Unfortunately, github has 100 Mb limitation.
So, I rewrote code so that it doesn't need this big file, then removed it, then ...
6
votes
3
answers
5k
views
Remove large file from git commit [duplicate]
I added a 150MB video to my projects source files and, unawarely, committed it. I then tried to git push the commit to my remote repo and noticed the the push hung for a while and then eventually ...
3
votes
2
answers
4k
views
Removing Big, old Files that do not belong in git [duplicate]
Long story short, there are very big files (like iso files-big) that were pushed into git. Not during my time with the group, but they've been treating the repo like an SVN-VC.
Anywho, how can i ...
0
votes
1
answer
5k
views
Git blob too large when committing to Gitlab [duplicate]
I am running a ReactJS website using webpack and ran a build to push to my production server. However, node_modules was being pushed even through my .gitignore. I cleared the cash, committed and now ...
0
votes
1
answer
5k
views
GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com [duplicate]
I'm getting this error when trying to push my project to github. No errors on flutter doctor. code is also building smoothly. I read some similar issues that the .gradle file should be added to ....
2
votes
2
answers
2k
views
Git remove large file - file not found [duplicate]
I am trying to push my .git to Github.
git push origin master
[...]
remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.
remote: error:...
-2
votes
1
answer
2k
views
How can i remove files from git history that don't exist anymore? [duplicate]
We have changed from SVN to GIT ( bitbucket ) a few months ago, now we are recieving a warning that our git repository is becomming to large ( currently at 2.2GB ). However when i check the local size ...
1
vote
3
answers
4k
views
How to decrease Git repository size by removing some files in history? [duplicate]
Assume, at the 1 February we have Git repository with size 5 MB. After adding some images and committing them to 10 February we receive repo with 15 MB.
How to remove this images from repo and ...
-1
votes
2
answers
3k
views
File admin config.zip is 169.57 MB; this exceeds GitHub's file size limit of 100.00 MB [duplicate]
I was copying some files in my folder and by mistakenly I added 169.57MB zip file and
because of not knowing about the zip file I run git command git add . and git commit -m "new feature added&...