Okay, maybe someone can give me advice for the best way to accomplish this... I have a team of developers (myself included) for a PHP website. I also have a design team. On the main webserver I want to setup the "live" site where all tested code will go. Then for each developer on the team, I want to have another site on the server where that developer can work and we can all see his development in progress. The design team will also have their own site on the server. So it would be something like this:
- Server http://site.com/live (live site with only tested/approved code) http://site.com/dev1 (test site for developer 1, which is a clone of the live site) http://site.com/dev2 (test site for developer 2, which is a clone of the live site) http://site.com/design (test site for design team, which is a clone of the live site) So the way I've tried to implement it is this... Setup a main "bare" repo. Then have clones of the main repo for "live", "dev1", "dev2", "design" all in their respective webroot folders. Then let's say dev1 makes a change that is tested and ready to go live... I will go to the server into the dev1 repo and push it to the main repo. Then I will go to the "live" repo and pull the changes to it. All devs will be able to clone their server "dev" repo to their local machine and work from there. However, I want their server "dev" repo to be as current as possible so that I can go to the server site for them and see the latest changes. So if developer 1 makes changes on his local clone, then he will commit the changes and "push" them to the server dev repo so that the entire team can view the changes on the server site. The problem I'm running into is that when the dev pushes commits to the server, the server dev repo working files/folders don't reflect the changes that were pushed to it. Therefore I can visit the "dev1" site after a commit was pushed to it and it will look/work the same as before the push. I need to always keep the "dev" sites current with the latest changes. Should I be doing something different in my workflow? Does anyone have any advice on setting up a system to work this way? Thanks, Matt -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Konstantin Khomoutov Sent: Friday, May 07, 2010 7:55 AM To: Git for human beings Subject: [git-users] Re: help - pushes not reflected on remote origin On May 7, 8:34 am, Matt Palermo <[email protected]> wrote: > I have a server where I setup a git repo. I cloned it on my local dev > machine. I add and delete some files and commit them on my local > repo. Then I push the commit to the server origin repo. All the > files I deleted in the local repo still appear in the server repo > structure, and all the files I added in my local repo do not appear on > the server structure. I open up gitk on the server repo and it shows > that my local commit was pushed to the server. It lists all the files > that I added/deleted, but nothing is reflected in the server folder > structure. It looks untouched. > > Am I doing something wrong here? How can I get my local commit pushes > to change the server repo structure? Most probably your workflow is broken: https://git.wiki.kernel.org/index.php/GitFaq#Why_won.27t_I_see_changes_in_th e_remote_repo_after_.22git_push.22.3F -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/git-users?hl=en. -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/git-users?hl=en.
