I have a question regarding using Git for a website. We already have access to create git private repositories but I don't think we can use that because we already have 3-4 development environments setup on our servers without Git and each environment already has code which is different from each other.
There are three environments
3) Test (has the latest code)
We write and test the code locally and manually move each point from one environment to other using merging software and test at each environment.
Now we want to use git because manually moving code is a lengthy process. Git doesn't seem to have physical files.
So we have two concerns:
1. There is different code already existing on three environments.
2. Testing the code on each environment using the web server.
What is the best way to go about it?