zoukankan      html  css  js  c++  java
  • 基于 Jenkins + Git 项目 中Git主机的 安装配置

    操作系统 IP地址 主机名 角色
    CentOS7.5 192.168.200.111 Git git服务器

    环境配置

    [root@git ~]# systemctl stop firewalld
    [root@git ~]# iptables -F
    [root@git ~]# setenforce 0

    完成 git 并配置 git 用户信息

    [root@git ~]# yum -y install git

    [root@git ~]# useradd git

    [root@git ~]# echo "123456" | passwd --stdin git

    创建本地仓库 probe

    [root@git ~]# su - git

    [git@git ~]$ mkdir probe.git

    [git@git ~]$ cd probe.git
    [git@git probe.git]$ git --bare init

    [git@git probe.git]$ exit

    克隆项目代码同步到自己创建的仓库中

    [root@git ~]# git clone https://github.com/psi-probe/psi-probe

    [root@git ~]# git clone git@192.168.200.111:/home/git/probe.git

    [root@git ~]# cp -rf psi-probe/* probe/

    [root@git ~]# cd probe/

    [root@git probe]# git add .

    [root@git probe]# git config --global user.email "wxl25678@163.com"
    [root@git probe]# git config --global user.name "wxl"
    [root@git probe]# git commit -m "all probe"

    [root@git probe]# git push origin master

  • 相关阅读:
    Delphi播放铃声
    小技巧
    Delphi线程中使用waitfor返回值
    window安装、启动consul
    kali2020-bash: openvas-setup:未找到命令 ,解决办法
    zookeeper 客户端
    redis 集群
    activeMQ
    Shiro
    Eclipse Java注释模板设置详解
  • 原文地址:https://www.cnblogs.com/2567xl/p/12369754.html
Copyright © 2011-2022 走看看