1

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'.
Raghuram Vadapalli
  • 1,190
  • 2
  • 13
  • 27

1 Answers1

2

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)

Community
  • 1
  • 1
torek
  • 448,244
  • 59
  • 642
  • 775