I built out a project and have been pushing it to git hub. I then made a copy of the folder (on my local machine) and started going in a different direction with it. I created a new repo on github but it won’t let me push the changes because it still thinks it’s part of the old repo. When I go to change the name, it resets the files on my local machine back to the previous repo! Good thing I saved a copy before trying this.
Basically what I want to do is start a new repo on github with my current project but keep all the git revisions I did in the past. Is this possible?
I think you must first have to remove your reference to the old repository: (in this case origin is the name of the reference to github)
And add the new reference:
And then push all the commits from your local repository to github