Git 倉庫安裝
1、安裝Git
2、建立Git使用者并設定密碼
3、建立倉庫
4、用戶端操作:配置SSH免密碼認證
# git伺服器操作:複制公鑰到git伺服器的git使用者的秘鑰檔案内
用戶端基本使用
用戶端操作:送出代碼
# 1、拉取倉庫
git clone [email protected]:/home/git/repos/app.git
# 2、建立檔案
cd app
touch index.html
# 3、送出制定本地檔案
git add .
# 4、檢視制定本地送出檔案
git status
# 5、送出本地版本倉庫 “1” 為注釋
git commit -m "1"
# 6、如果未添加郵箱需要添加
git config --global user.name "Your Name"
git config --global user.email [email protected]
# 7、送出到git庫主分支
git push origin master