Linux安裝Git
1). Git 下載地址1 _ Git 下載地址2
2). 方式一
# 安裝git
yum install git
# 解除安裝git
yum remove git
yum安裝git的版本大多為1.7,如果需要更高的版本,請使用方式二安裝。
3). 方式二
I. 安裝Git依賴包
yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker
II. Git 2.9.5
III. 解壓git安裝包
# 解壓
tar -zxvf git-2.9.5.tar.gz
III. 配置git安裝路徑
# 進入資料夾
cd git-2.9.5
# 配置安裝路徑
./configure prefix=/usr/local/git
IV. 編譯並且安裝
# 編譯並安裝
make && make install
# 檢查是否安裝成功,檢視版本
/usr/local/git/bin/git --version
V. 將git指令新增到環境變數
# 編輯配置檔案
vi /etc/profile
# 新增配置
GIT_HOME=/usr/local/git
export PATH=${PATH}:${GIT_HOME}/bin
# 使配置檔案生效
source /etc/profile
相關文章
- Linux Git安裝LinuxGit
- Linux-git安裝LinuxGit
- Linux下安裝GitLinuxGit
- linux 安裝git服務LinuxGit
- Linux 安裝配置應用- GitLinuxGit
- Linux CentOS升級安裝gitLinuxCentOSGit
- centos/linux下的安裝gitCentOSLinuxGit
- Linux(CentOs6.4)安裝GitLinuxCentOSGit
- linux下從原始碼安裝gitLinux原始碼Git
- 安裝GitGit
- Git安裝Git
- 02 安裝git、安裝TortoiseGitGit
- Day36 – Linux命令與Git安裝LinuxGit
- linux下通過原始碼安裝gitLinux原始碼Git
- Git安裝 for windowsGitWindows
- CentOS安裝gitCentOSGit
- Git 安裝(window)Git
- git 安裝 nvmGit
- Ubuntu安裝gitUbuntuGit
- Rocky 9 Linux 軟體安裝 neovim 和 gitLinuxGit
- Sourcetree(git GUI)安裝GitGUI
- 下載安裝gitGit
- git安裝及配置教程 windows windows上git的安裝和使用GitWindows
- git(一):瞭解、學習、安裝gitGit
- 在CentOS上安裝GitCentOSGit
- Git — 從安裝到操作Git
- git Windows版本安裝教程GitWindows
- centos6.5安裝gitCentOSGit
- Git server安裝和配置GitServer
- Win10系統怎樣安裝Git_win10安裝Git的方法Win10Git
- Git筆記(3) 安裝配置Git筆記
- Git 學習之安裝配置Git
- 教你玩轉Git-安裝Git
- git_stats安裝及使用Git
- mac安裝中文版本 gitMacGit
- Mac上Git安裝與配置MacGit
- webStorm安裝以及整合git使用!WebORMGit
- git安裝與初始化Git