# Clear out all things not in the repo
```shell
git clean -xdf
```
# Get all the remote branches
```shell
git fetch --all
```
# Drop all stashes
```shell
git stash clear
```
# Checkout `upstream/main`
```shell
git fetch upstream
git checkout -B main upstream/main
```
or
```shell
git branch --set-upstream-to=upstream/main main
```