Codespace best practices
Switch branches instead of creating a new Codespace
Creating a new Codespace takes time and bandwidth.
To improve your workflow (especially when reviewing multiple pull requests (PRs)), switch branches in an existing Codespace instead of creating a new Codespace for each branch/PR on the same fork as follows:
- Run
git fetchto update the Codespace’s list of branches. - Run
git branch -ato list all remote branches. - Run
git switch <branchName>orgit checkout <branchName>to switch to the branch you wish to review.