git操作远程分支(协同开发)

 

// 添加远程仓库
$ git remote add joe [email protected]:joe.le/dr-frontend.git

// 修改远程仓库地址
$ git remote set-url joe [email protected]:joe.le/dr-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

 

 

你可能感兴趣的:(每天进步一点点,学习永无止境,众观千象,git)