首页 > 其他 > 详细

centos7搭建git服务器(多用户版)

时间:2018-12-02 12:01:16      阅读:275      评论:0      收藏:0      [点我收藏+]
  • 创建仓库并分享到组:
    git  init  --shared=group  test
  • 创建组:
    groupadd  git
  • 切换项目所属组:
    chgrp  -R  git  test
  • 创建用户1:
    useradd  test1  -g  git
    passwd  test1
  • 创建用户2:
    useradd  test2  -g  git
    passwd  test2
  • 修改配置文件:
    vim test/.git/config
    添加
    denyCurrentBranch = ignore

    技术分享图片

  • centos7搭建git服务器(多用户版)

    原文:http://blog.51cto.com/12173069/2324839

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