Reputation: 1240
In the source of the OSS project I am working on, there is a script written to create release version from the repository. The script throws an error on this line
git worktree prune
The error is :
git: 'worktree' is not a git command. See 'git --help'.
Upvotes: 1
Views: 2927
Reputation: 488193
git worktree
is a new-ish feature, experimental in Git version 2.5, more solid in Git 2.6, and with a minor but fairly important fix in 2.7.2 if you move a worktree.
See also this SO question for reasons you might want to use git worktree
.
(already answered in comments, but making a real answer in case others come across this in search)
Upvotes: 2