What are the advantages and/or appropriate use-cases for setting up a detached worktree in git? I’m particularly interested in situations that involve workflows that involve a chain of servers (eg, localhost -> staging server -> live server).
What are the advantages and/or appropriate use-cases for setting up a detached worktree in
Share
The big advantage (that I see, at least) is the ability to publish changes to a live server without forcing the git repository itself to be located in the live area. You can throw the repo wherever you want, and use a detached worktree to checkout.