首页 > 其他 > 详细

GIT分布式版本控制

时间:2018-08-05 11:39:16      阅读:140      评论:0      收藏:0      [点我收藏+]

1.1Git简介

linus 用C语言编写 2005年诞生 分布式版本管理系统 速度快,适合大规模,跨地区多人协同开发

1.2Git 生态

Git 分布式版本管理系统

Gitlab git私库解决方案

Github git公有库解决方案

1.3Git安装

Centos 
yum install git
Ubuntu 
apt-get install git

Windows安装git bash

Liunx编译安装
注意不要使用git1.8以下版本,推荐使用2.7版本

一、安装依赖
yum update -y
yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker


cd /usr/local/src
wget https://github.com/git/git/archive/v2.7.4.zip
unzip v2.7.4.zip
cd git-2.7.4


make prefix=/usr/local/git all
make prefix=/usr/local/git install
rm -rf /usr/bin/git
ln -s /usr/local/git/bin/git /usr/bin/git
git --version

#初始化

[root@linux-node1 ~]# mkdir test
[root@linux-node1 ~]# git init
Initialized empty Git repository in /root/.git/
[root@linux-node1 ~]# git config --global user.name "zsq"
[root@linux-node1 ~]# git config --global user.email zsq@126.com


[root@linux-node1 ~]# git config --list
user.name=zsq
user.email=zsq@126.com
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true

 四个区域

技术分享图片

 

四种状态

技术分享图片

 

GIT分布式版本控制

原文:https://www.cnblogs.com/w787815/p/9424808.html

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