Vai al contenuto
Errori GitErrore
fatal: branch is already checked out at another worktree

fatal: branch già estratto in un altro worktree

Il branch non può essere estratto perché è già estratto in un altro worktree.

gitlinuxwindowsmacos

Cause di questo errore

I worktree Git richiedono che ogni branch sia estratto in un solo worktree alla volta. Il branch che vuoi estrarre è già in uso in un altro worktree collegato.

Come correggerlo

Elenca i worktree: git worktree list. Rimuovi il worktree che usa il branch: git worktree remove path. In alternativa, estrai prima un branch diverso nell'altro worktree. Crea un nuovo branch se necessario.

Documentazione ufficiale

Codici di errore correlati