2020年3月

切换远程仓库地址:

  • 方式一:修改远程仓库地址
#更换远程仓库地址,URL为新地址。
git remote set-url origin GIT-URL
  • 方式二:先删除远程仓库地址,然后再添加
#删除现有远程仓库
git remote rm origin
#添加新远程仓库
git remote add origin GIT-URL

查看远程仓库的地址

git remote -v

直接推送代码到镜像仓库

git push --mirror GIT-URL