前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Gerrit ssh push code

Gerrit ssh push code

作者头像
阿志小管家
发布2024-02-02 15:05:10
660
发布2024-02-02 15:05:10
举报

看看现在远程连到哪: git remote -v origin  http://gousheng@gerrit.gousheng.com:8081/product/tina/gousheng-doc (fetch) origin  http://gousheng@gerrit.gousheng.com:8081/product/tina/gousheng-doc (push)

到gerrit上看看远程的地址是什么,加到ssh远程里: gerrtt网页-Prohect- 搜索doc-看看SSH对应的地址

remote add ssh ssh://gousheng@gerrit.gousheng.com:29418/product/gousheng/gousheng-doc git remote -v origin  http://gousheng@gerrit.gousheng.com:8081/product/gousheng/gousheng-doc (fetch) origin  http://gousheng@gerrit.gousheng.com:8081/product/gousheng/gousheng-doc (push) ssh     ssh://gousheng@gerrit.gousheng.com:29418/product/gousheng/gousheng-doc (fetch) ssh     ssh://gousheng@gerrit.gousheng.com:29418/product/gousheng/gousheng-doc (push)

看看分支是什么: git branch master 分支是master 把本地的修改ssh推到远程对应的分支 git push ssh master:refs/for/master

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2024-02-02,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档