I’m considering using git for source code management. I’m a little confused as to whether I should setup a ubuntu server with git or just use github ? Is there really any advantage of using github ? Also, how would you deploy the code from git (or github) to the production server if the production server does not have git installed ? Do I have to write some kind of deployment script in php (using ftp functions) or use shell script ?
Thanks
Git doesn’t need a server to operate at all.
You can install it on your local machine, create a repository and start using it.
A remote git installation (which you can do on your own remote server or which github.com provides for free) is only needed to create a remote copy of your git repository (useful if you’re going to be programming from multiple locations, or if you want to share your source code’s history with the world)
The advantage of github – public repos are free, it has GUI clients for Windows and Mac (don’t know about Linux).
Deploying the code to a production server is a completely different thing – it has nothing to do with git. There’s no need for git to be installed on the production server.