git 命令總結

git clone [email protected]:project-name.git 克隆
git branch [-a -r] 查看分支【所有 遠端】
git pull $origin $branch_name 拉代碼
git push $origin $branch_name 推代碼
git checkout [-b] $feature_name 切換【創建】分支
git status
git log
git add xxx
git rm yyy
git commit -m 'xxx'
git commit -am 'yyy'
git diff [$branch] [$another]
git fetch -p 用來同步遠端的分支信息,刪除本地遠端列表中遠端服務器已經刪除的分支


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章