Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Version control PHP Web Project

We have a PHP project that we would like to version control. Right now there are three of us working on a development version of the project which resides in an external folder to which all of our Eclipse IDEs are linked, and thus no version control.

What is the right way and the best way to version control this?

We have an SVN set up, but we just need to find a good way to check in and out that allows us to test on the development server. Any ideas?

like image 499
Adam Lerman Avatar asked Aug 07 '08 16:08

Adam Lerman


People also ask

How do I add version control to my project?

In the Projects Window, right-click the project that you want to add to the local repository. Select the version control system you want to use: For Subversion: Add to Version Control > Subversion. The Import Pane appears.

What is web based version control?

So what is “Version Control”? Version Control (aka Source Control or Revision Control) is the management and control of a project. Particularly in the web space though, version control is software that stores, tracks, and updates changes made to a master copy of the project that multiple people might be working on.

What is project version control?

Version control, also known as source control, is the practice of tracking and managing changes to software code. Version control systems are software tools that help software teams manage changes to source code over time.

Which tool is used for version control?

Answer: Yes, “Git” is a software tool that enables version control of the source code. Git helps to: Track different versions of the same file.


1 Answers

We were in a similar situation, and here's what we ended up doing:

  • Set up two branches -- the release and development branch.
  • For the development branch, include a post-commit hook that deploys the repository to the dev server, so you can test.
  • Once you're ready, you merge your changes into the release branch. I'd also suggest putting in a post-commit hook for deployment there.

You can also set up individual development servers for each of the team members, on their workstations. I find that it speeds things up a bit, although you do have some more setup time.

We had to use a single development server, because we were using a proprietary CMS and ran into licensing issues. So our post-commit hook was a simple FTP bot.

like image 187
Marcel Levy Avatar answered Oct 14 '22 14:10

Marcel Levy