Hi,
I’m going to start implementing a workflow involving Git and would appreciate some help from those who have had experience with Git. I’m a single developer and plan on having two Github repos, my_domain-dev and my_domain. Locally, I’m going to have a master branch and (typically) 1 “feature” branch at a time, with the understanding that I may need a new branch or 2 for bug fixes.
When it looks like my feature branch works locally, I’ll merge it with my master branch locally. At that point, I’ll push the master branch to my_domain-dev which will automatically deploy to a test server. Assuming that that looks good as well, I’ll then push my local master branch to my_domain which will automatically deploy to my production server.
My 2 questions are:
- Does this seem like a good approach?
- Is there any benefit to pushing my feature branch up to GitHub? Or should I just remove it locally as soon as I see that things are working?
Thanks!