**
下拉master分支
git clone 位址
下拉指定分支
git clone 位址 --branch 分支名
指定分支送出
先切換到該分支,然後執行git add和git commit
如果本地沒有遠端分支,需建立相同分支
git branch 分支名
git branch -f 分支名 (強行建立分支)
切換分支
git checkout 分支名
檢視分支
git branch
曆史送出資訊檢視
git log --pretty online
git log --stat
git log
版本後退
git reset --hard 版本的id編号
![](https://img.laitimes.com/img/9ZDMuAjOiMmIsIjOiQnIsIyZuBnL2gTN5ETMyQTM5ADNwkTMwIzLc52YucWbp5GZzNmLn9Gbi1yZtl2Lc9CX6MHc0RHaiojIsJye.png)