I spent the past week reading Git and trying to figure out how to fit into our company. There is a lot of information, and among other resources I found the Pro Git book very useful. However, one thing that remains a mystery to me (this is also not in the book) is how to "link" the Git repository to our production servers.
Our current setup consists of one SVN server, which we fix (I found that this can be compared to setting up an open Git repository in a common place and clicking on it). Our production servers (there are several clients working with the same PHP code) are currently working copies of SVN, which we manually update one by one by running svn up
.
What is the best way to approach this in Git? I thought about adding production servers as remits in my Git repository and clicking on them , but I think this could create confusion if different servers get different push histories (this will be one case when you really need to centralize it, I think). Or do you need to use a tool like https://github.com/mislav/git-deploy ?
I can't help but feel that the Git developers didn't really think about it. "I hope I missed something :)
source share