I have a git repo installed in my unix for version tracking our JEE website.
I have currently run into issues not in the usage of git but the way in 
which I am suppose to use it which is explained below.
I work in a team of 3 developers which contribute to the website 

Initially when I installed Git in our server I directly created a repo of 
our webapps directory which contains the actual work files and ran into the 
foll problems.

1)While committing the changes into the repo one of us would genrally do a git 
add . and commit it to the repository which would commit not only the files 
the commiter changed but would also commit the changes of other developers.
When we faced this issue we decided that we needed to create separate 
non-bare repos for each one of us in the same server in different 
directories which would house the entire code.The basic work stucture we 
are following is hown below:

As shown above in the image we have created a bare repo which would have 
the website contents pushed by the webapps which in the image is the Work 

The basic workflow here is:

1) Create n number of non-bare repos for each and every developer.

2) Get the entire website work files from pulling from that bare repo

3) After making changes to our own repo push to the bare repo

4) The bare repo being configured with a post-receive hook would actually 
update the Work Directory.

This setup is working fine but we are facing a lot of issues as shown below:

1) Each developer having his own contetnts in a separate directory is not 
able to test the code before pushing it to the bare repo which would update 
the Work Directory- Coz of these steps even for say one jsp file change I 
end up doing 20 commits until it starts working properly without bugs since 
we have tomcat pointing to only the original work directory.

This has become the most troubleseme issue here.

How can we improve this scenario where using GIT in out prject seems 

Can anyone suggest any ways for improving the same.


Reply via email to