This question seems obvious, but I can't seem to find a direct answer in my searching of stackoverflow and other corners of the internet.
I have a project I work on using R studio on a local machine. The project started by pulling from a repo on Github. I can't push to this repo, as its not mine and I don't have permission. No big deal, I'd like to create a new repository on github to save all my changes to the original repo and the current state of the project. I can't just enter:
git remote add origin https://github.com/user/new_repo.git
Because there is already a remote origin. I receive this error:
fatal: remote origin already exists.
Right. This is clear. The origin is the original github repository that I pulled this from, and also the one I am not allowed to update because its not my code. Straightforward. I want to change the origin of the repository to: https://github.com/user/new_repo.git
(the new repo I just setup on github), but save all of the work history of how I have modified the project.
Apologies if this is a duplicate and I don't understand the other responses to similar questions.