List, create, or delete branches. [^1] ```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>)`. [^2] Then just use that `<sha>` in this one-liner: ```bash git checkout -b <your-branch> <sha> ``` [^1]: https://git-scm.com/docs/git-branch [^2]: https://stackoverflow.com/questions/3640764/can-i-recover-a-branch-after-its-deletion-in-git