zhuwei0901-yanwu

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

 

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

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

 

posted on 2018-08-28 14:38 演武_zhuwei 阅读(...) 评论(...) 编辑 收藏

相关文章:

  • 2021-12-02
  • 2021-11-06
  • 2021-12-03
  • 2021-12-08
  • 2021-11-23
  • 2021-10-20
  • 2021-09-21
  • 2021-11-20
猜你喜欢
  • 2021-05-13
  • 2021-10-19
  • 2021-11-01
  • 2021-12-20
  • 2021-11-18
  • 2021-08-16
  • 2021-10-09
相关资源
相似解决方案