I am in love with sublime text, use CodeIgniter on a WAMP & a LAMP (Ubuntu) machine. PHP is my food, obvious cz I use CI.
Scenario I work on 3 servers.
- Desktop - Apach MySql (Development)on Windows 7
- Laptop - Apach MySql (Roaming Development) on Ubuntu 13.04
- Cloud Server - Apache.MySql (Production) on Ubuntu 12.10
Problem
Everything is good when I have Sublime Text open on my desktop and I am happily making that website over CodeIgniter, but next moment when I have to get to bed with my laptop everything is gone. I feel lost seeing the code on my laptop is not updated with the ones I made on my desktop.
Then i have to go log into my desktop's file server and download the updates. Most of the time the whole website folder when am not sure to which files I updated. Next comes database. I log into my desktop's MySql server from laptop and download the whole database and update my laptop's existing one.
Solution For
I want a setup that can automatically sync all my files the moment they are updated, on both my development server and should have an option to replicate the changes to the production server as and when I command it to. I did research and found something called Git & GitHub to be somewhat my solution but I got no idea of what these three letters G, I & T mean and how to implement them. I searched the web but got nothing but boring black & white text explaining it which I find hard to grasp.
While answering please note the OS on my system.