Page 1 of 1

git repository on server

Posted: Fri Apr 10, 2015 1:43 am
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!

Re: git repository on server

Posted: Fri Apr 10, 2015 4:23 am
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.