git切换远程

已经开发一段时日,公司突然提出要换git仓库

  1. 查看目前所有的分支
    $git branch -va
  2. 添加新的远程仓库
    $ git remot add [name] [url]
  3. 查看下目前配置
    $ git config -l
  4. 修改默认远程仓库
    $ git config rebranch.master.remote [newremote]
原文地址:https://www.cnblogs.com/olenji/p/5713642.html