I have reviewed many existing pages on SO about this subject and none of the solutions works. I am running git lfs migrate
on an existing repository with 80,000+ commits, and thousands of tickets and pullrequests. git lfs migrate
rewrites commit history and we are applying it to all branches. I want to then force push all the changed branches to the original repo. This is the ultimate goal. Now for the tests I have been running that are the direct subject of this post.
In my tests, I clone the target repo and run the migration locally before attempting to set and push to a new repository at a different github url. After this is complete I go to GitHub and alas all the branches are gone except master. I've tried using git push origin -u --all
and --mirror
and other variants posted here on SO all to no avail. I even got creative and just ra git push --mirror
but still only master appears on the GitHub repo page. The documentation at https://git-scm.com/ is clear but it does not have the expected affect.
Any advice would be greatly appreciated!