I'm new to git and would want to know if this branching approach would be okay for what we intended to do.
We'll have three sites
- prod.websitename.com - live site
- sandbox.websitename.com - testing site that can be used by our clients
- dev.websitename.com - internal site for developing and testing hotfix/features before pushing to live site
What we intend to do is to have a single centralized repository that would serve all three sites. The repository will have three branches: master, sandbox, and development
and then we'll just checkout the branch to change files and pull/push the changes for each site.
For changes, development will be pushed to both master and sandbox branch. Sandbox will never be pushed to master.
Is this okay? Any advice is highly appreciated.
Thank you so much.