PDA

View Full Version : git respository with changed address



flylehe
September 16th, 2009, 09:40 PM
Hi,

I used to pull from someone's git repository. Today he just moved his repository to another address. I wonder if there is some way for me to pull from the new address and to get the info of what changes he made with respect to last time I pulled from his old one?

if I do a "git clone newaddress" under the parent directory of my repository, I will get "fatal: destination directory 'xxx' already exists." So my question is what is the correct way to change the address of his repository in my own one so I can simply use "git pull" in the future to update from his new repository?

Thanks and regards!

SledgeHammer_999
September 16th, 2009, 10:05 PM
I think you'll find the answer here. (http://www-cs-students.stanford.edu/~blynn/gitmagic/ch06.html#_sorry_we_8217_ve_moved)

For me this is a great and useful git guide!