0

How can I deploy an existing PHP project using Git and what is the best free git repository?

2
  • Is your question how to store php code in git or deploy it to the server with git? Commented Jul 5, 2011 at 16:58
  • both. I've used git only with rails project but never with php Commented Jul 12, 2011 at 16:46

4 Answers 4

1

You can use github for this purpose

Sign up to request clarification or add additional context in comments.

Comments

1

Checkout the free Git deploy tool from PHP Fog.

Comments

0

Github is generally considered best.

When I last did something like that, I simply SSH'd to the server did git clone and then had cron run a pull and update from my production "branch". You'll want to set up your git repository with your public key for the server, but instructions for that are pretty simple (I found the Windows one right off (scroll to the bottom), but it still works).

Comments

0

If you need a private repo for free you should use BitBucket.

Check out this PHP script for deploying from Git repositories:

https://github.com/Lyquix/php-git-deploy

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.