3 ms·
Why not `git clone --bare`?
by vaibhavsagar 3y ago
Why not `git clone --bare`?
- v7engine 3y agoI've tried this and it seems to be working fine. git clone --bare https://path.to/repo.git https://path.to/repo.git mv repo.git .git now we can create worktrees in the same folder.
- CuriousCosmic 3y agofwiw you can actually one line that > git clone --bare https://path.to/repo.git https://path.to/repo.git .git
- CuriousCosmic 3y agoYou can bare clone and it works fine. This is in part just habit from converting existing repos into bare + worktree repos.