インストールコマンド:
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