How can I make git forget that a worktree once contained a branch, say integration-branch.
I have a worktree some-stuff that was based on integration-branch and I did a git squash merge on that branch, which means was reset to actually be integration-branch. However, I deleted the directory (see below). But, whenever I make a new worktree say other-stuff based upon integration-branch and try to do a squash merge, it makes me recreate the worktree directory some-stuff and do the integration there.
I want it instead to checkout integration-branch to the current worktree (other-stuff) and do the squash here and after I have done the push allow me to forget that this worktree (other-stuff, some-stuff) ever existed and ever contained the branch integration-branch.
It won't even let me make a new worktree for "integration-branch" claiming that it is already checked out to "some-stuff" even if the worktree for some-stuff has been deleted with rm -rf some-stuff
.
How do I make git forget that some-stuff ever existed? Somewhere, it is tenaciously holding onto that worktree.
I first tried git worktree rm some-stuff
.
I later tried git checkout dummy
and git branch dummy
in the somestuff worktree.
I have also deleted (rm -rf some-stuff
).