Prerequisites
Open VS Code in a repository where you’re comfortable making changes. Once you’ve installed the Graphite VS Code extension, there will be a Graphite icon on the far left of VS Code.

Checkout main
The VS Code extension will show the branch you currently have checked out with a triangle next to the branch name. If you have a branch other than your trunk branch (usually namedmain
or master
) checked out, click on trunk and press checkout to change the branch you have.

Make changes
Make changes to your repository, either by adding a file or editing an existing file. That file should now show up under “uncommitted changes” in the extension.
Stage your changes
Select uncommitted changes, and you’ll see all the changed files in your repository (files added, files modified, and files deleted). Clicking the checkbox next to a file allows you to stage it in git (the equivalent of runninggit add
).

Create a branch
Once you’ve staged changes, you can create a new branch by entering a commit title and pressing create branch.

Submit your branch
Assuming your repository is connected to a remote, you should see a “Sync” button in the top left of the extension pane and an upload button next to any branches that don’t yet have a PR opened for them. Click the upload button next to your first PR to open a draft PR. After opening the PR, there will be a circle next to the branch showing the PR’s status (in this case it’s open).