How can I use GIT in my own server?

How do I use GIT in a remote server of a web host?

  • I used to work on my own and I'd just FTP the changes to the staging server to review the website. Now with another developer in the team, I want to know how to use the Git workflow effectively. Is it possible to install Git directly in the staging server of the dedicated or shared host so that we both can just push the files into the branch in the server just like pushing to GitHub? or is it also possible to sync GitHub account with the remote host?

  • Answer:

    If you own the staging server which you could use as a source code repository, you could install GitLab and have your own Github like source repository on your server. But since you only have 2 developers in the project, I won't recommend this approach because of the overhead of installing and maintaining your source code repository server. I think making use of existing free alternatives would be a more convenient and cost effective approach for your current setup. If you don't mind the public accessing your project sources, Github will do. If you want it to be private, I recommend using http://Bitbucket.org which has free private repositories which you could share to up to 5 devs. You install git on your staging server. Then you just push your commits on Bitbucket and clone/pull the production codebase on your staging server.

Maki Tolentino at Quora Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.