I am new to git and distributed version control but have managed, without much stumbling, to init
my own local source, setup a private remote repository (origin) via ssh on my own web host, and do the basic pull
and push
from master to origin. (I even testing a clone!)
I think I have the single-direction, git work flow under control. Now, however, I'm starting to think about how I handle moving things between development, beta, and production. Most tutorials I've found talk about different users merging and cloning and pulling and pushing, but in my case, it's just me, handling things from different sources.
Am hoping an experienced git user could provide some insight into my work flow and provide some suggestions on how they would handle merging, branches, etc (things I am not too familiar/comfortable with, yet).
Here are the different machines/locations I will have:
- Remote main git store: ssh://[email protected]/git/myproject.git
- Home web server, main development box (where I sit, privately, and do most of the work)
- Remote web server, beta testing (public facing): http://beta.example.com (test my dev work before production)
- Remote web server, production site: http://example.com (where real people, hopefully, use the site)
- (Occasionally) traveling around on a laptop (running its own local web server).
How would you handle this? Thanks in advance.