In the initial commit of the project I am working on, there are files that were added in the initial commit, and then completely scrapped in the next commit. These files are bigger than 128 mb therefore I cannot push these files to GH.
The intent was to migrate the project to GH from GL and these files that were put there do not allow for GH to accommodate them.
I am using a visual representation for the branches.
After trying This answer I have realized that git basically kept the origin/main and "beheaded" the Local branch from the initial commit and created a parallel version. I assume, locally.
Yes, whoever (and I swear it was not me) has screwed up initial commit -> scrapped the whole thing with another initial commit and replaced it again with the third initial commit, this time adding the right files. (grey dots)
Let me explain the colors:
- Orange : this is Local branch which is now 551/552 push pulls away :) . And yes, it is detached from initial commit.
- Red : Still the origin/main. Still starts with initial commit that I want to get rid of
- Green and Blue : dev branches that are now locally and origin/dev respectively. As you can guess they also follow each other in parallel
Question: Is there a way I can push/save/ to my local machine and then push it to GH without touching the origin/main and origin/dev since they are attached to initial commit 0 and the local branch does not ? Or should I somehow replace the whole branch history in GL with my local history ?
Thank you in advance