I have a repository, say abc/myprject.git. I have this repo on a server from where I pull my code. Now I have forked this repository, naming it chirag/myproject.git.
I have two questions, with regards to this:
- I want to use
chirag/myproject.gitrepo instead of the original one now, so how do I change it on the server fromabc/myproject.gitto the forked onechirag/myproject.git? - And after I’ve changed the repo on the server, if I delete
abc/myproject.git, will it cause any issues withchirag/myproject.git?
Thanks
Use
git remote set-urlto change the URL of theoriginremote (if you didn’t change anything, the remote repository will be namedorigin).If there’s no “physical” relationship between the both repositories at
abc/myproject.gitandchirag/myproject.gityou won’t run into any problems when deleting the first one. Git is a distributed version control system that produces full, independent repositories upon cloning.With “physical” relationship” I mean something like softlinks when both repositories reside on the same filesystem or something similar.