Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

what does worktree prune do

$ mkdir a
$ cd a
$ git init
$ git commit --allow-empty --allow-empty-message -m ''
$ git worktree add ../b
$ ls .git/worktrees/
b
$ rm -rf ../b
$ git worktree prune
$ ls .git/worktrees/
$
 
PREVIOUS NEXT
Tagged: #worktree #prune
ADD COMMENT
Topic
Name
8+7 =