// 添加远程仓库 $ git remote add joe git@git.xxx.com:joe.le/frontend.git // 修改远程仓库地址 $ git remote set-url joe git@git.xxx.com:joe.le/frontend.git // 删除远程仓库 $ git remove joe // 重命名远程仓库 $ git rename joe newname // 查看所有仓库地址 $ git remote -v // 查看所用仓库分支(本地+远程) $ git branch -a // 查看本地仓库地址 $ git branch $ git btanch -v $ git branch --list // 查看远程仓库地址 $ git branch -r // 切换其他远程仓库 $ git checkout ship // pull 数据 $ git pull ship