you can use https://git-scm.com/docs/git-worktree to have many "views" of a single git repo.
For more complex environments, use multiple VMs (common to have large VMs running in AWS/GCP for development and only use your laptop or phone as a thin client)