首页 > 其他 > 详细

【repo&git】下载新代码该做的配置

时间:2018-08-28 14:56:18      阅读:193      评论:0      收藏:0      [点我收藏+]

技术分享图片

 

下载一份新代码需要做的步骤:

1、拷贝 .gitconf 到根目录下并修改name和mail,也可以自己建.gitcong文件。

  放置在根目录下。

[user]

  name = 张三
  email = 公司邮箱
[core]
  editor = vim
  rditor = vi
[color]
  ui = auto

[url "[http://用户名@gerrit地址/ "]
pushInsteadOf = gitolite@gerrit地址/

[credential]
  helper = store

 

2、在 gerrit上贴 SSH key

   生成方法:

   ssh-keygen -t rsa -C dsf.lipeng@byd.com      【注意:一定要确保邮箱正确,和下载服务器的归属一致】

 

3、在A公司服务器上从B公司下载代码:

     账户:user
     密码:password
     repo init -u ssh://username@gerrit地址/path

 

【repo&git】下载新代码该做的配置

原文:https://www.cnblogs.com/zhuwei0901-yanwu/p/9548081.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!