December 10, 2013 at 5:05 pm #158117
This is what I do.
- Scaffold my project.
- Initialize local Git repo / push copy to private GitHub
- Start working and perform continuous commits.
- When I’m working by myself on a project, I hardly ever create branches, only when I’m experimenting or if I’m adding some major feature that might break something else in my code.
- When project is done. I log into my production server via SSH and just do git clone, there are services that automatically sync your repo to your server with each push, but you have to host your repo in order to do this. You can also create CRON job that runs every so often as well. But for me logging into my server takes few minutes so not a big deal.
[email protected] I’ll send you link to a video from my Google Drive account about Git Workflow.