1、初始化倉庫 ?
git init
2、把文件添加進去,把文件修改添加到暫存區(qū)
git add README.md
3、查詢狀態(tài)
git status
4、提交更改,把暫存區(qū)的所有內(nèi)容提交到當前分支
git commit -m "first commit"
5、本地倉庫與遠程庫關(guān)聯(lián) (注: ?https://github.com/WLIN534/123.git 是指自己的遠程庫地址)
git remote add origin https://github.com/WLIN534/123.git
6、把本地庫的所有內(nèi)容推送到遠程庫
git push -u origin master