先删除,再添加

# 删除现有远程仓库 
git remote rm origin    

 # 添加新远程仓库
git remote add origin <url>  

# 查看远程仓库的地址
git remote -v

参考
git 切换远程仓库地址