Change Git Repository for pull code -


I have a repository, call abc / myprject.git . I have a repository on one server from where I pull my code. Now I have closed this report, named it as chirag / myproject git .

I have two questions, regarding this:

  1. I now want to use the chirag / myproject.git repo instead of the original , Then how do I change it from the abc / myproject.git to the FORCADE on the server Chirag / MyProject GIT ?
  2. And if I've changed the repo on the server, then if I delete abc / mypro.get , then the cause will be chirag / myproject git

    thanks

    original remote Use >
    1. git remote set-url to change the URL of (if you have not changed anything, the name of the remote repository original .)

        git remote set-url original git: //someserver/chirag/myproject.git    
    2. If there is no "physical" relationship between the two repositories on abc / myproject.git and if you delete any of the first chirag / myproject.git Will not run in. Git is a distributed version control system that produces complete, independent repository on cloning. "With physical" relationship "I mean something like softlinks, when both repositories remain on the same file system or something similar.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -