Use a Local Git Bare Repo to Separate Dev and Test Environments
Use a Local Git Bare Repo to Separate Dev and Test Environments In full-stack work, a common problem is how to isolate dev and test environments. Many people host on GitHub or GitLab, but private projects may not be suitable for public hosting. Git is distributed. You can set up a local bare repo as a remote to move code from dev -> test in one machine. What is a bare repository? A normal repo (git init) has a working tree + .git metadata and can be edited directly. A bare repo (git init --bare) has only Git data, no working tree. It is usually used as a remote. In short: ...