### 1.創建分支
```
git branch <branch-name>
```
### 2.切換分支
```
git checkout <branch-name>
```
### 3.創建+切換分支
```
git checkout -b <branch-name>
```
### 4.查看分支
```
git branch
```
### 5.創建分支和遠程分支連接
```
git checkout -b <branch-name> origin/<branch-name>
```
### 6.合并分支
```
git merge <branch-name>
git merge --no-ff -m"xx" <branch-name>
```
### 7.查看分支圖
```
git log --graph --pretty=oneline --abbrev-commit
```
### 8.將修改內容添加到工作區的存儲區
```
git stash
//查看存儲區的內容
git stash list
//恢復存儲區的內容
git stash pop
```
### 9.刪除分支
```
git branch -d <branch name>
git branch -D <branch name>
```
### 10.推送分支
```
git push orgin <branch name>
```