1. 程式人生 > >git 更換遠端倉庫路徑

git 更換遠端倉庫路徑

cd existing_repo
git remote rename origin old-origin
git remote add origin [email protected]:Panghaiyan/documents.git
git push -u origin –all
git push -u origin –tags