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

 

// 添加远程仓库
$ 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

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值