remove

Deletes a clone, once it has established that nothing would be lost.

gitto remove <name>

Deletes a clone, once it has established that nothing would be lost.

What it refuses

Uncommitted changes. Commits the upstream does not have. And the case that is easy to miss: a clone whose submodules host the git directory of a worktree living somewhere else.

$ gitto remove search
gitto: search hosts the history of worktrees that live outside it:
        /Users/you/work/storefront-docs
      removing it would leave each of them without a repository.

Deleting that clone would leave those worktrees as directories of files with no repository behind them, which git reports as a missing path long after the cause is gone.

On this page