[[Git command]] that lists, creates, or deletes branches. ```bash git branch # list all branches git branch <name> # create a new branch ``` If you've just deleted the branch that you would like to restore, you'll see something like this in your terminal: `Deleted branch <your-branch> (was <sha>)`. Then just use that `<sha>` in this one-liner: ```bash git checkout -b <your-branch> <sha> ```