I discovered that my .gitignore file was not commited into my git repository at all. I have about 300 commits in my repository with a few branches I made: I am using the git flow model so now I have master, develop and a few feature branches
I do not care how but I want to amend the first commit somehow and all versions after it.
as i see it i have two options:
- add the .gitignore as new commit before the 1st commit containing only the .gitignore file.
- amend the first commit somehow
I tried option #1 using this link but on rebase I get this error
$ git rebase --onto newroot --root master
First, rewinding head to replay your work on top of it...
Applying: First Commit
fatal: Out of memory, realloc failed
Repository lacks necessary blobs to fall back on 3-way merge.
Cannot fall back to three-way merge.
Patch failed at 0001 First Commit
The copy of the patch that failed is found in:
c:/Temp/.git/rebase-apply/patch
When you have resolved this problem, run "git rebase --continue".
If you prefer to skip this patch, run "git rebase --skip" instead.
To check out the original branch and stop rebasing, run "git rebase --abort".
my biggest file is about 40MB and the whole project size is about 1.6GB. when I ran this command I closed everything running and had about 10GB of free memory (I have 16GB in total).
any ideas how to do this?