Linked Questions
86 questions linked to/from How do you fix a bad merge, and replay your good commits onto a fixed merge?
78 votes
5 answers
70k views
How can I permanently delete a file stored in Git? [duplicate]
I backed up my database to Git just so I could get the database at my home computer. I don't want this file to be versioned. It was just a one-time thing really. Can I delete it for good, so Git doesn'...
7 votes
3 answers
18k views
How can I remove a binary from history? [duplicate]
I found out that it wasn't such a good idea to keep tracking the binary. The size of our repository is growing at a much faster rate than I would like. Is it possible to purge this file from git? No ...
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 ...
-1 votes
3 answers
9k views
Git does not detect a deleted file [duplicate]
I am trying to migrate my app code from bitbucket to github. I changed the remotes on my folder but when I tried to push on my new repo I had an error as I add a file that was too big in size. I ...
3 votes
1 answer
2k views
Remove parts of our bloated git history [duplicate]
My Problem: Early on when the repository was set up a mistake was made causing all the images at the time to be written to the repository. This was quickly rectified in the gitignore file and no ...
3 votes
1 answer
5k views
Git error: large files "detected", even though no large files exist [duplicate]
I am trying to push a repository onto Github, but I cannot as "large files are detected". The largest file is only 38 MB! There should be no problem. However, the error states that the file ...
1 vote
1 answer
2k views
git how to remove untracked files from the pack file [duplicate]
I removed a folder\files from my Git repo by running git rm -r --cached Application01 to untrack all the files in that folder and reduce the size of the Git repo. The problem is that the pack file ....
1 vote
0 answers
1k views
Remove large object file from git repo [duplicate]
I realized my .git folder was taking up 1.3GB today and looked through the contents to see what the problem was. I found a .pack file taking up almost all of the space and searched around online, ...
2 votes
1 answer
261 views
Remove moved files from history [duplicate]
I have a repository in which there is a "Trash" folder with a lot of trash files (previous developer wanted to store them for whatever reason). I want to completely remove them from repo, as they take ...
0 votes
1 answer
190 views
how to remove a file from git to never exist at all [duplicate]
so i pushed a ouath key file into my git branch from my local copy. how do i overwrite commits in git to remove the oauth key file? i tried doing git rm cache /storage/oauth.key and did a git add, ...
0 votes
1 answer
163 views
How do i dereference some files in my git repo [duplicate]
When working on my Cordova project, I didnt have a .gitignore file, so when i committed everything (by way of git add *, it seemed to commit all my platforms, .idea, and plugins. So, this is now ...
0 votes
0 answers
122 views
How to Remove File from Old Git Commit [duplicate]
I'm really not a Git user other than GitHub using the Windows Client. I've recently been working with a client that uses Git and Springloops. The problem is that I added a large file to my local ...
2 votes
0 answers
60 views
How to remove a file completely from git repository? [duplicate]
I added app.apk into git repository first, and then we decided to remove app.apk from git repository. Not only remove it from source code directory but also .git directory to reduce the size of git ...
0 votes
1 answer
45 views
GIT permanently remove directories from repository [duplicate]
There are several files ( mostly pngs ) amounting to around 5 GB in my Git repository. These files are spread across different directories. So, basically I just needed to delete those directories. Eg. ...
0 votes
0 answers
36 views
How do I remove a large file from an unsynced commit when that commit is 5+ commits ago? [duplicate]
As with all Git questions, I'm sure this has been answered a dozen times before, but I haven't been able to find my special snowflake twin, so thanks for the patience. Here's the rub: 5 commits ago, ...