首页 > 代码库 > git 操作远程仓库地址

git 操作远程仓库地址

  • 查看所有远程仓库地址: git remote -v  
  • 更改远程仓库地址: git remote set-url origin newUrl

  • 查看某一个远程仓库地址: git remote get-url origin

  • 增加一个远程仓库地址:git remote add name url
  • 重命名一个远程仓库地址:git remote rename <old> <new>

  • 删除一个远程仓库地址:git remote remove name

git 操作远程仓库地址