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

  • 相关阅读:
    HDU 5794
    HDU 5794
    3070 Fibonacci 矩阵快速幂
    数论基础
    hdu 1061 Rightmost Digit 快速幂
    poj 2305 Basic remains java
    poj 1001 Exponentiation
    hdu 2054 A == B ? (java)
    java大数练习
    hdu3018 Ant Trip 欧拉回路
  • 原文地址:https://www.cnblogs.com/2567xl/p/12369754.html
Copyright © 2011-2022 走看看