git status 狀態(tài)查看,文件增刪改等狀態(tài)
git add . 增加修改到提交序列中
git commit -m "提交說(shuō)明" 提交代碼到本地分支并填寫(xiě)說(shuō)明
git push origin 分支名 提交代碼到遠(yuǎn)程分支,如沒(méi)有分支,將創(chuàng)建
git push origin 分支1:分支2 把遠(yuǎn)程分支1提交給遠(yuǎn)程分支2,如分支2不存在將自動(dòng)創(chuàng)建
git reset --hard "提交說(shuō)明" 本地分支回退到某次提交的時(shí)
## ****慎用命令
rm -rf "文件名或文件夾名" 遞歸刪除某文件或文件夾