{"thread":{"id":"40237","subject":"Git Deployment Multiple Existing Environments","startedAt":"2015-09-01T07:50:45Z","lastAt":"2015-09-03T07:30:05Z","messageCount":3,"participants":["Sukhwinder Singh","Thomas Koch"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"269083","messageId":"BAY180-W4617CD6AE98F64442A918BC26A0@phx.gbl","threadId":"40237","inReplyTo":null,"subject":"Git Deployment Multiple Existing Environments","fromName":"Sukhwinder Singh","fromEmail":"php_programmer_india@hotmail.com","sentAt":"2015-09-01T07:50:45Z","receivedAt":"2015-09-01T07:50:45Z","isPatch":false,"sender":{"key":"php_programmer_india@hotmail.com","avatar":null},"body":"Hello,\nI am kind of new to Git and I have a question regarding using Git for a website. I have searched a lot but haven't found a solution yet. We already have 3-4 environments setup on our Windows servers without Git and each environment already has code which is different from each other.\n\nThere are three environments\nLive\nUAT\nTest (has the latest code)\n\n\nAnd then developers have their local copies.\n\nWe write and test the code locally and manually move each point from one environment to other using merging software and test at each environment.\nNow we want to use git because manually moving the code is a lengthy process. Also as the developers have local copies, it is very difficult to manage code.\n\nCode is written locally by the team and then after testing locally it is first merged with \"Test\" environment code, then \"UAT\" and then, finally with \"Live\".\nSo we have two concerns:\n\nThere is different code already existing on these environments.\nTesting the code on each environment using the web server.\n\nWhat is the best way to go about it? As I am new to git more details will be helpful, like commands to use.\n\nThanks, \t\t \t   \t\t  "},{"id":"269084","messageId":"201509011034.11257.thomas@koch.ro","threadId":"40237","inReplyTo":"BAY180-W4617CD6AE98F64442A918BC26A0@phx.gbl","subject":"Re: Git Deployment Multiple Existing Environments","fromName":"Thomas Koch","fromEmail":"thomas@koch.ro","sentAt":"2015-09-01T08:34:11Z","receivedAt":"2015-09-01T08:34:11Z","isPatch":false,"sender":{"key":"thomas@koch.ro","avatar":null},"body":"On Tuesday, September 01, 2015 09:50:45 AM Sukhwinder Singh wrote:\n> Hello,\n> I am kind of new to Git and I have a question regarding using Git for a\n> website. I have searched a lot but haven't found a solution yet. We\n> already have 3-4 environments setup on our Windows servers without Git and\n> each environment already has code which is different from each other.\n> \n> There are three environments\n> Live\n> UAT\n> Test (has the latest code)\n> \n> \n> And then developers have their local copies.\n> \n> We write and test the code locally and manually move each point from one\n> environment to other using merging software and test at each environment.\n> Now we want to use git because manually moving the code is a lengthy\n> process. Also as the developers have local copies, it is very difficult to\n> manage code.\n> \n> Code is written locally by the team and then after testing locally it is\n> first merged with \"Test\" environment code, then \"UAT\" and then, finally\n> with \"Live\". So we have two concerns:\n> \n> There is different code already existing on these environments.\n> Testing the code on each environment using the web server.\n> \n> What is the best way to go about it? As I am new to git more details will\n> be helpful, like commands to use.\n> \n> Thanks, \t\t \t   \t\t  --\n\nThere are douzends of different git deployment scripts on github from minimal \nto multi-data-center-enterprise-grade. I wrote this one for my workplace:\n\nhttps://github.com/comsolit/comsolit_deploy\n\nThe README contains links to alternative solutions.\n\nThomas Koch\n"},{"id":"269293","messageId":"201509030930.05121.thomas@koch.ro","threadId":"40237","inReplyTo":"BAY180-W19A853193986EA50E27C1BC2680@phx.gbl","subject":"Re: Git Deployment Multiple Existing Environments","fromName":"Thomas Koch","fromEmail":"thomas@koch.ro","sentAt":"2015-09-03T07:30:05Z","receivedAt":"2015-09-03T07:30:05Z","isPatch":false,"sender":{"key":"thomas@koch.ro","avatar":null},"body":"On Thursday, September 03, 2015 09:11:10 AM Sukhwinder Singh wrote:\n> Hello,\n> \n> I have posted this question on various forums as well but I have not\n> received any guidance yet. I was requesting some steps which I can follow.\n> Our Servers are windows based.\n\nDon't use windows. Get rid of people who think windows is a server operating \nsystem.\n"}]}