Skip to content

worktree

Sébastien Andreatta edited this page Apr 27, 2026 · 2 revisions

odev worktree

worktree demo

Manage git worktrees used within odev.

Usage

odev worktree [-v {CRITICAL,ERROR,WARNING,INFO,DEBUG,DEBUG_SQL,NOTSET}] [-h] [-f] [-V VERSION] [-l] [-p] [-C] [-r] [-c] [name]

Aliases

wt

Arguments

Positional Arguments:

Argument Description
name Name of the worktree to create, checkout or remove.

Optional Arguments:

Argument Description
-v, --log-level Set logging verbosity for the execution of odev.
-h, --help Show help for the current command.
-f, --force Bypass confirmation prompts and assume a default value to all, use with caution!
-V, --version Act on a specific Odoo version only.
-l, --list List worktrees and their properties.
-p, --prune Prune worktrees with issues reported by git.
-C, --create Create a new worktree.
-r, --remove Remove an existing worktree.
-c, --checkout Change the revisions used in an existing worktree.

Examples

Show help

odev worktree --help

List all worktrees

odev worktree --list

Create a new worktree for version 19.0

odev worktree --create 19.0

Prune broken worktrees

odev worktree --prune

Checkout a specific branch in a worktree

odev worktree --checkout 19.0

Clone this wiki locally