關聯遠程倉庫與本地倉庫
方案一 : 本地項目init
之後,remote add
到遠程倉庫
#創建新文件夾
mkdir ml-async
#進入
cd ml-async
#初始化Git倉庫
git init
#提交改變到緩存
git commit --message 'description'
#本地git倉庫關聯GitLab倉庫
git remote add origin [email protected]:ml-platform/ml-async.git
#提交到GitHub中
git push -u origin master
方案二 : 從遠程倉庫中clone
源碼到本地, 生成本地倉庫
git clone [email protected]:ml-platform/ml-async.git
cd ml-async
touch README.md
git add README.md
git commit -m "add README"
#提交到遠程GitLab倉庫
git push -u origin master