The way I've accomplished this is:
- Create a new repo on github (new-repo.git)
cd old-repo/
on local machine and fetch all new changesgit push -u https://github.com/[username]/new-repo.git main -f
- Clone your new remote repo
https://github.com/[username]/new-repo.git
to your local environment
I've found this a simple way to essentially copy an old remote repo into a new remote repo.