Need help: main and branch repositories have entirely different commit histories #121983
Unanswered
spookyWalrus
asked this question in
Repositories
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Select Topic Area
Question
Body
Hello
I recently ran
git filter-repo
as there was an exposed secret in a history of commits in my branch repository. After successfully pushing the changes locally (which was a bit of struggle) to my branch, I no longer can merge or make pull requests in either main or branch. I always get stuck when github tells me: "There isn’t anything to compare. Main and branch are entirely different commit histories. "I've tried the following solutions with the same end result:
git --rebase origin main
as described here: https://stackoverflow.com/questions/71768999/how-to-merge-when-you-get-error-hint-you-have-divergent-branches-and-need-to-sEverytime I make an attempt to push after making changes, I always need to re-establish a remote repo even after cloning from the repo. I'm not sure why this is.
Here's my repo: https://github.com/spookyWalrus/ramenReport
Any help regarding this is appreciated
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions