Git系列一之安裝管理

1.Git安裝部署

Git是分佈式的版本控制系統,我們只要有了一個原始Git版本倉庫,就可以讓其他主機克隆走這個原始版本倉庫,從而使得一個Git版本倉庫可以被同時分佈到不同的主機之上,並且每臺主機的版本庫都是一樣的,沒有主次之分,極大的保證了數據安全性,並使得用戶能夠自主選擇向那個Git服務器推送文件了,其實部署一個git服務器是非常簡單的。

1.安裝Git

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

2.配置git全局用戶以及郵箱

[root@linux-node1 ~]# git config --global user.name "sundandan"
[root@linux-node1 ~]# git config --global user.email "[email protected]"
[root@linux-node1 ~]# git config --list
user.name=sundandan
[email protected]
[root@linux-node1 ~]# git config --global color.ui true

3.檢查git相關配置

[root@linux-node1 ~]# git config --list
user.name=sundandan
[email protected]
color.ui=true


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章