I wanted to merge in some changes from another repo so I added the remote, fetched and merged.
But I did not think that the commits of the other branch would be added.
I backed one commit from my merge and manually added the changed files and pushed that commit.
So now I have two disconnected commit trees in one branch.
Something like this:
git reflog expire --expire-unreachable=now --all
git gc --prune=all --aggressive
git rebase [hash]
If no ref points to
4, they are dangling and will be removed by
Where do you still see those commits?
Are still some heads or tags point to those commits?