1. 安装git2.7

  git2.7具体安装步骤如下: 

    [root@host1 ~]# yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc-c++ perl-ExtUtils-MakeMaker -y   

    [root@host1 src]# pwd
    /usr/local/src

    [root@host1 src]# wget https://github.com/git/git/archive/v2.7.4.zip

    [root@host1 src]# ll
    total 6756
    -rw-r--r-- 1 root root 6918037 Nov 5 15:45 v2.7.4.zip        

    [root@host1 src]# unzip v2.7.4.zip

    [root@host1 src]# cd  git-2.7.4/

    [root@host1 git-2.7.4]# make prefix=/usr/local/get all

    [root@host1 git-2.7.4]# make prefix=/usr/local/git install

    [root@host1 git-2.7.4]# rm -rf /usr/bin/git  (删除原来的git1.8版本的软连接)

    [root@host1 git-2.7.4]# ln -s /usr/local/git/bin/git /usr/bin/git   (重新创建git2.7版本的软连接)

    [root@host1 git-2.7.4]# git --version   (查看git版本)

    git version 2.7.4

2. git相关操作命令

    git安装完成后,需要进行初始化操作,可以新建git有关目录。

      git初始化

        新建git有关目录:[root@host1 ~]# mkdir /git-test

        初始化git:          

          [root@host1 ~]# cd /git-test/
          [root@host1 git-test]# pwd
          /git-test          
          [root@host1 git-test]# git init
          Initialized empty Git repository in /git-test/.git/

          添加版本库信息(提交代码或者文件的用户,邮箱等信息):            

            [root@host1 git-test]# git config --global user.name "rybtest"
            [root@host1 git-test]# git config --global user.email "rybtest@163.com"

          查看git 配置信息:            

            [root@host1 git-test]# git config --list
            user.name=rybtest
            user.email=rybtest@163.com
            core.repositoryformatversion=0
            core.filemode=true
            core.bare=false
            core.logallrefupdates=true

3. git基本原理

    

    

    

4. git常用命令

    

    查看历史版本:[root@host1 git-test]# git log

    

5. git 分支管理

     

      

6. git高级管理

    

    

7. git远程管理

    

    

    

 8. gitlab安装配置

    具体安装步骤如下:

      [root@host1 git-test]# yum install curl policycoreutils openssl-server openssh-clients     

      [root@host1 git-test]# systemctl enable sshd      

      [root@host1 git-test]# systemctl start sshd

      [root@host1 git-test]# yum install postfix -y

      [root@host1 git-test]# systemctl enable postfix
      [root@host1 git-test]# systemctl start postfix    

      [root@host1 ~]# rpm -ivh gitlab-ce-8.9.0-ce.0.el7.x86_64.rpm

      安装完成后开始进行配置:

        [root@host1 ~]# vim /etc/gitlab/gitlab.rb

        

      [root@host1 ~]# gitlab-ctl reconfigure (执行此命令使修改生效,此命令执行大概需要10分钟 左右时间 会比较长)

      在浏览器里输入IP地址进行访问:http://192.168.132.161 ,有时候会报如下错误提示:一般都是由于内存太小导致,加大内存,最小2048MB内存,问题解决。

        

                       Whoops, GitLab is taking too much time to respond

      加大内存问题解决后,再次输入本机ip地址访问成功如下图:需要设置密码,自定义即可!

        

  GITLAB介绍:

    

    

    

    

9. gitlab权限管理

 

配置管理-git研究(版本管理)的更多相关文章

  1. 微信小程序如何使用 Git 实现版本管理和协作开发

    前言 在微信小程序开发的过程中,代码版本管理往往需要使用第三方工具进行管理.虽然微信Web开发工具提供了对Git文件版本状态的提示,但实际的使用体验依然不尽人意. 随着微信Web开发工具的更新,最新的 ...

  2. 实验一 GIT 代码版本管理

    实验一  GIT 代码版本管理 实验目的: 1)了解分布式分布式版本控制系统的核心机理: 2)   熟练掌握git的基本指令和分支管理指令: 实验内容: 1)安装git 2)初始配置git ,git ...

  3. 实验一  GIT 代码版本管理

    实验一  GIT 代码版本管理 实验目的: 1)了解分布式分布式版本控制系统的核心机理: 2)熟练掌握git的基本指令和分支管理指令: 实验内容: 1)安装git 2)初始配置git ,git ini ...

  4. 实验一Git代码版本管理

    GIT代码版本管理 实验目的: 1)了解分布式分布式版本控制系统的核心机理: 2) 熟练掌握git的基本指令和分支管理指令: 实验内容: 1)安装git 2)初始配置git ,git init git ...

  5. 实验一  GIT 代码版本管理

    实验一  GIT 代码版本管理 实验目的: 1)了解分布式分布式版本控制系统的核心机理: 2)   熟练掌握git的基本指令和分支管理指令: 实验内容: 1)安装git 2)初始配置git ,git ...

  6. 软件工程实验一 Git代码版本管理

    实验一  GIT 代码版本管理 一.实验目的: 1)了解分布式分布式版本控制系统的核心机理: 2)熟练掌握git的基本指令和分支管理指令: 二.实验内容: 1)安装git: 2)初始配置git ,gi ...

  7. 使用Git进行版本管理

    参考:http://www.runoob.com/git/git-tutorial.html 一.Git简介 1.Git 和 SVN 比较 (1)GIT是分布式的,SVN不是; (2)GIT把内容按元 ...

  8. 用好SVN与Git,版本管理都不是问题

    介绍一下SVN SVN:代码控制器(版本控制器),主要是为了多人协同开发项目,管理代码.也可以管理个人代码.也叫程序界的”后悔药“. SVN(是subversion的简称)是近年来一款基于C/S架构的 ...

  9. 实验1 GIT代码版本管理

    (一)实验目的: 1)了解分布式分布式版本控制系统的核心机理: 2) 熟练掌握git的基本指令和分支管理指令: (二)实验内容: 1)安装git 2)初始配置git ,git init git sta ...

随机推荐

  1. C++面向对象程序设计学习笔记(2)

    C++在非面向对象方面的扩充 C++向下兼容C语言,因此C语言中的语法在C++中依然成立 输入输出 C++添加了标准输入流对象cin和标准输出流对象cout来进行输入输出, 例: #include&l ...

  2. HTML基础五-starrysky页面动起来

    Starrysky前端框架 链接:https://pan.baidu.com/s/1P8mPrHZjyRtzw1NWnAx-9w 提取码:cjl5 接口文档:https://www.showdoc.c ...

  3. 【oracle】lpad函数 作用(填充)

  4. [LeetCode] 871. Minimum Number of Refueling Stops 最少的加油站个数

    A car travels from a starting position to a destination which is target miles east of the starting p ...

  5. [LeetCode] 63. Unique Paths II 不同的路径之二

    A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). The ...

  6. oracle--AWR,ADDM,ASH区别

    一,ASH (Active Session History) ASH以V$SESSION为基础,每秒采样一次,记录活动会话等待的事件.不活动的会话不会采样,采样工作由新引入的后台进程MMNL来完成. ...

  7. Js apply方法与call方法详解 附ES6新写法

    我在一开始看到javascript的函数apply和call时,非常的模糊,看也看不懂,最近在网上看到一些文章对apply方法和call的一些示例,总算是看的有点眉目了,在这里我做如下笔记,希望和大家 ...

  8. xss之挑战小靶场(1-10)

    在线靶场(http://xss.fbisb.com) w 第一关 get请求,没有什么过滤,直接上<script>alert()</script> 源码: 第二关 输入参数会显 ...

  9. [数据分析]利用pandasticsearch批量读取ES

    1.git地址 https://github.com/onesuper/pandasticsearch 2.建立连接 from pandasticsearch import DataFrame use ...

  10. Java8 新特性 Stream 无状态中间操作

    无状态中间操作 Java8 新特性 Stream 练习实例 中间无状态操作,可以在单个对单个的数据进行处理.比如:filter(过滤)一个元素的时候,也可以判断,比如map(映射)... 过滤 fil ...