配置管理-git研究(版本管理)
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研究(版本管理)的更多相关文章
- 微信小程序如何使用 Git 实现版本管理和协作开发
前言 在微信小程序开发的过程中,代码版本管理往往需要使用第三方工具进行管理.虽然微信Web开发工具提供了对Git文件版本状态的提示,但实际的使用体验依然不尽人意. 随着微信Web开发工具的更新,最新的 ...
- 实验一 GIT 代码版本管理
实验一 GIT 代码版本管理 实验目的: 1)了解分布式分布式版本控制系统的核心机理: 2) 熟练掌握git的基本指令和分支管理指令: 实验内容: 1)安装git 2)初始配置git ,git ...
- 实验一 GIT 代码版本管理
实验一 GIT 代码版本管理 实验目的: 1)了解分布式分布式版本控制系统的核心机理: 2)熟练掌握git的基本指令和分支管理指令: 实验内容: 1)安装git 2)初始配置git ,git ini ...
- 实验一Git代码版本管理
GIT代码版本管理 实验目的: 1)了解分布式分布式版本控制系统的核心机理: 2) 熟练掌握git的基本指令和分支管理指令: 实验内容: 1)安装git 2)初始配置git ,git init git ...
- 实验一  GIT 代码版本管理
实验一 GIT 代码版本管理 实验目的: 1)了解分布式分布式版本控制系统的核心机理: 2) 熟练掌握git的基本指令和分支管理指令: 实验内容: 1)安装git 2)初始配置git ,git ...
- 软件工程实验一 Git代码版本管理
实验一 GIT 代码版本管理 一.实验目的: 1)了解分布式分布式版本控制系统的核心机理: 2)熟练掌握git的基本指令和分支管理指令: 二.实验内容: 1)安装git: 2)初始配置git ,gi ...
- 使用Git进行版本管理
参考:http://www.runoob.com/git/git-tutorial.html 一.Git简介 1.Git 和 SVN 比较 (1)GIT是分布式的,SVN不是; (2)GIT把内容按元 ...
- 用好SVN与Git,版本管理都不是问题
介绍一下SVN SVN:代码控制器(版本控制器),主要是为了多人协同开发项目,管理代码.也可以管理个人代码.也叫程序界的”后悔药“. SVN(是subversion的简称)是近年来一款基于C/S架构的 ...
- 实验1 GIT代码版本管理
(一)实验目的: 1)了解分布式分布式版本控制系统的核心机理: 2) 熟练掌握git的基本指令和分支管理指令: (二)实验内容: 1)安装git 2)初始配置git ,git init git sta ...
随机推荐
- 使用hangfire在xunit中
框架为:abp hangfire配置连接:https://aspnetboilerplate.com/Pages/Documents/Hangfire-Integration 在单元测试中如何配置呢? ...
- 实验1 C语言开发环境和数据类型、运算符、表达式
#include <stdio.h> int main () { int x; printf("输入一个整数:\n"); scanf("%d",&a ...
- The 2019 China Collegiate Programming Contest Harbin Site
题解: https://files.cnblogs.com/files/clrs97/HarbinEditorialV2.zip Code: A. Artful Paintings /* let x= ...
- 知识点总结 HTML+CSS部分
1.html+css经典布局 ①左列定宽,右列自适应 .left{width:100px;float:left;} .right{overflow:hidden;} ②两列顶宽,中栏自适应 .left ...
- 洛谷 P5021 [NOIP2018]赛道重建
洛谷 P5021 [NOIP2018]赛道重建 传送门 思路 思路就是常规的思路,所以就不说了--我就是来记录一下我的\(AC\)之路的,真的是太爽了 没错--我也是一个个打的部分分,最后终于AC的, ...
- MySQL实战45讲学习笔记:第十一讲
一.如何在邮箱这样的字段上建立合理的索引 现在,几乎所有的系统都支持邮箱登录,如何在邮箱这样的字段上建立合理的索引,是我们今天要讨论的问题. 假设,你现在维护一个支持邮箱登录的系统,用户表是这么定义的 ...
- [LeetCode] 730. Count Different Palindromic Subsequences 计数不同的回文子序列的个数
Given a string S, find the number of different non-empty palindromic subsequences in S, and return t ...
- CSP-S 2019 简要题解
从这里开始 又考炸了,sad.....明年应该在准备高考了,考完把坑填了好了. 一半题都被卡常,qswl.[我汤姆要报警.jpg] dfs 怎么这么慢呀,sad..... i7 牛逼! 写的比较混乱, ...
- maven集成命令-U -B -P -e -X
maven -U clean compile install -e -X -Dmaven.test.skip=true 在持续集成服务器上使用怎样的 mvn 命令集成项目,这个问题乍一看答案很显然,不 ...
- C#获取屏幕鼠标坐标点颜色
[DllImport("user32.dll")] private static extern IntPtr GetDC(IntPtr hwnd); ...