Hacker News new | ask | show | jobs
by v7engine 832 days ago
I've tried this and it seems to be working fine.

git clone --bare https://path.to/repo.git

mv repo.git .git

now we can create worktrees in the same folder.

1 comments

fwiw you can actually one line that

> git clone --bare https://path.to/repo.git .git