# Branch
### Create
create a new branch and switch to it.\
`git checkout -b branch-name`
This is shortcut for:\
`git branch branch-name`
`git checkout branch-name`
---
### Checkout
Switch between diffrent branches.
> It’s best to have a clean working state when you switch branches.
`git checkout branch-name`
---
### Merge
Merge a branch into another branch.\
`git checkout master`\
`git merge branch-name-tobe-merged`
---
### Delete
Delete an existing branch.\
`git branch -d branch-name`