git remote 远程仓库命令

118 阅读1分钟

查看远程仓库

git remote -v

添加远程仓库到本地配置

git remote add [自定义远程仓库名] [远程仓库] 例如: git remote add origin github.com/xxx.git

删除本地配置里的远程仓库

git remote rm [自定义远程仓库名]

重命名本地配置里的远程仓库名

git remote rename [自定义远程仓库原名] [自定义远程仓库原名]