GIT學習筆記 安裝git

2021-08-14 20:07:05 字數 1165 閱讀 1610

git是乙個分布式版本控制工具。svn等其他是乙個集中式版本管理工具。

git最重要的三個狀態:

1、已提交(committed)

2、已修改(modified) 

3、已暫存(staged)

安裝git:

1、在linux上安裝,

centos 執行命令 sudo yum install git

ubuntu 執行命令 sudo apt-get install git

2、在mac上安裝

最簡單的方法是安裝 xcode command line tools。

3、在windows上安裝

。4、使用源**安裝

原始碼安裝 git,需要安裝 git 依賴的庫:curl、zlib、openssl、expat,還有libiconv。 如果你的系統上有 yum (如 fedora)或者 apt-get(如基於 debian 的系統),可以使用以下命令之一來安裝最小化的依賴包來編譯和安裝 git 的二進位製版:

$ sudo yum install curl-devel expat-devel gettext-devel \

openssl-devel zlib-devel

$ sudo apt-get install libcurl4-gnutls-dev libexpat1-dev gettext \

libz-dev libssl-dev

$ sudo yum install asciidoc xmlto docbook2x

$ sudo apt-get install asciidoc xmlto docbook2x

接著,編譯並安裝:

$ tar -zxf git-2.0.0.tar.gz

$ cd git-2.0.0

$ make configure

$ ./configure --prefix=/usr

$ make all doc info

$ sudo make install install-doc install-html install-info

完成後,你可以使用 git 來獲取 git 的公升級:

$ git clone git:

Git學習筆記01 安裝Git

學習的資料來自廖雪峰官方 的git教程,菜鳥教程的git教程 安裝完成後,在開始選單中找到找到git git bash。開啟後彈出乙個類似命令列的視窗,證明git安裝成功 git配置 git提供乙個叫做git config 工具,專門用來配置或讀取相應的工作環境變數,這些環境變數,決定了git在各個...

Git學習筆記(3) 安裝

作為乙個程式猿,linux可以說是必須要掌握的系統了,而且git最早也是在linux系統上開發的,故linux上git的安裝必須要學會 windows就更不用說了,相信絕大部分人都是在windows上做開發 接下來是mac,對不起,這個真幫不了你.我沒用過mac 因為窮.linux 首先來一張git...

Git學習筆記 git安裝及基本使用

安裝git 開啟shell頁面,輸入 sudo apt get install git core按下回車後輸入密碼,即可完成git的安裝。配置身份 git config global user.name tony git config global user.email tony gmail.com...