I am new to git and looking for the most efficient way to setup development and production environment with git.
I develop locally on some projects, say:
project1.local
project2.local
project3.local
When I am ready I push the changes to the server, where beta tester can work with it:
beta.project1.com
beta.project2.com
beta.project3.com
Only if betatest succeeds I would like to push the changes to production domain:
www.project1.com
www.project2.com
www.project3.com
I do understand how to connect project1.local and beta.project1.com. However, I do not really understand how to setup the connection between beta.project1.com and www.project1.com to push tested features into production.
Is git right for me?