Skip to content

Commit

Permalink
docs: Add section for workspace resets (loft-sh#1215)
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalbreuninger authored Aug 12, 2024
1 parent 27616c1 commit cee1fd7
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/pages/developing-in-workspaces/create-a-workspace.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -133,3 +133,19 @@ Run the following command to rebuild an existing workspace:
devpod up my-workspace --recreate
```

## Resetting a workspace

Some scenarios require pulling in the latest changes from a git repository or re-uploading your local folder. If instead of recreating the devcontainer you need to completely restart your workspace from a clean slate, use `Reset` over `Recreate`.

** When recreating a workspace, no changes will be preserved! **

### Via DevPod Desktop Application

Navigate to the 'Workspaces' view and press on the 'More Options' button on the workspace you want to reset. Then press 'Reset' and confirm.

### Via DevPod CLI

Run the following command to reset an existing workspace:
```
devpod up my-workspace --reset
```

0 comments on commit cee1fd7

Please sign in to comment.