git repository on server

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
fabby
Forum Commoner
Posts: 62
Joined: Tue Feb 15, 2005 1:06 am
Location: Romania
Contact:

git repository on server

Post by fabby »

hello.
do you know if there is a way where i can install the repository on my server?
i mean, to work local at my project, and when i do git push, to all go live on my server.
10x!
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: git repository on server

Post by requinix »

Don't do that. Trust me: it sounds cool and all now but it'd be so easy to mess up your site with just one little problem.

Get a GitHub or Bitbucket account and put your code there. You work locally and push changes whenever you feel like it. When the code is ready, go to your server and pull the latest changes. It's a little bit more work but it's much safer for your website if you stay in control of what code it is running and when it downloads changes.
Post Reply