Git worktrees with bare repo

Ref: https://medium.com/@fragov/git-worktrees-with-bare-repo-ec24f2c8e518 Git worktrees with bare repo mkdir project-dir cd project-dir Clone your repo with bare parameter, to the .bare directory (As we want to avoid seeing all bare repo stuff, it is better to clone it to a separate directory, and then just “tell” git, where to get your repo information): git clone --bare git@your-server:yourrepo.git .bare The next command allows us to use our bare repo from current directory: echo 'gitd...
Read post