I\'m trying to migrate a git repo from Kiln to Github. I can add the new remote just fine, but when I try to push master to the new remote, I get the following error:
As of git 2.2.22 the way to do this is with the git-filter-repo tool.
Easy and fast:
git filter-repo --force --invert-paths --path-glob '*/.git' --path '.git'