git 命令代碼git
git checkout 切換分支
git add . 添加
git commit -m 提交
git push origin 推送到遠程服務器
git branch 查看本地分支
git branch -a 查看本地分支和遠程分支
git checkout -b test 在分支master下建立test分支而且留在test分支
git push origin :branch-name 刪除遠程分支
git branch -r 查看遠程分支
git branch -d test 刪除本地分支
git fetch 獲取遠程分支到本地
git clone 將一個新項目從git遠程克隆到本地電腦
git fetch origin 獲取遠程分支更新
git merge test 合併test分支到當前分支
git fetch -p 更新遠程分支服務器