Linuxの(Centos7.5)は、GITをインストール

インストールコマンド:

YUM -yのgitをインストール  

バージョン番号を表示します。

git --version  

アカウントを作成します。

[ルート@ localhostのホーム] #1 のIDのgit   
ID:gitの:无此用户   
[ルートホーム@localhost] useraddのgitの   
[ルート@ localhostのホーム] #のはpasswd gitの  

gitリポジトリを作成します。

[ルート@ localhostのホーム] ます。mkdir -p /data/git/gittest.git   
[ルート@ localhostのホーム] gitの初期化--bare /data/git/gittest.git   
空のGitリポジトリを初期化 /データ/ gitの/ gittest。 gitの/   
[ルートホーム@localhost] CD /データ/ gitの/   
[ルート@ localhostのgitの] chownコマンド-Rのgit:gitのgittest.git /

倉庫のクローニング:

住所:IP @ gitの:/data/gittest.git

 

参考ます。https://www.cnblogs.com/dee0912/p/5815267.html

おすすめ

転載: www.cnblogs.com/DreamFather/p/11327712.html