[git-users] What is the best way to use GIT for versioning Java Website
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 development. 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: https://lh4.googleusercontent.com/-qKXGpVl_8Uc/UQTiLE0LvgI/AAY/Q-H-TU0WtKA/s1600/git_arch.png 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 Directory. 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 benefitial. Can anyone suggest any ways for improving the same. --
[git-users] Re: acked by ,test by, how to add them. automatically? and what does it mean
On Thursday, January 24, 2013 8:40:20 AM UTC-8, lei yang wrote: I know git commit -s can add my self with signed off by me but how to get acked by and tested by? Many workflow tools will automatically add these lines. You can either use those tools (usually code review software) or use git hooks (prepare-commit-msg maybe) to add those lines. -milki --
[git-users] Re: Git subtree included in mainline?
On Saturday, January 26, 2013 12:06:36 PM UTC-8, sym...@gmail.com wrote: Hello everyone, I noticed the following post regarding git-subtree being merged into mainline... http://news.ycombinator.com/item?id=3926683 however, when downloading the latest tarball version, I was not able to find it there. My question is, does git implement it's own subtree functionality? Or do I need to install third-party apenwarr? It is under /contrib, If you are installing from source, you will also need to compile /contrib/subtree -milki
[git-users] Re: git request-pull? how to
http://jk.gs/git-request-pull.html
Re: [git-users] Re: acked by ,test by, how to add them. automatically? and what does it mean
On Sun, Jan 27, 2013 at 4:38 PM, milki nitesha...@gmail.com wrote: On Thursday, January 24, 2013 8:40:20 AM UTC-8, lei yang wrote: I know git commit -s can add my self with signed off by me but how to get acked by and tested by? Many workflow tools will automatically add these lines. You can either use those tools (usually code review software) or use git hooks (prepare-commit-msg maybe) to add those lines. what's code review software, I should google it by which key word. prepare-commit-msg works for me, it seems if I create a new repos, I have to re-modify the .git/.hooks/prepare-commit-msg, not very good Lei -milki -- --
Re: [git-users] Re: acked by ,test by, how to add them. automatically? and what does it mean
On Sunday, January 27, 2013 8:16:21 AM UTC-8, lei yang wrote: what's code review software, I should google it by which key word. https://en.wikipedia.org/wiki/Code_review prepare-commit-msg works for me, it seems if I create a new repos, I have to re-modify the .git/.hooks/prepare-commit-msg, not very good Yes, there is no way to require client-side automated hooks. You can use server-side hooks to require/validate the presence of such lines in the commit messages and you can distribute hooks and rely on developer training. This is all part of your particular workflow. -milki