2 questions on Proposed Git Workflow

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:

  1. Does this seem like a good approach?
  2. 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!

You may want to push it to allow someone else to see changes in this branch before they are merged into master. If you are working alone there is no special benefits of doing that.

Thanks! For now and the foreseeable future, it’s just me. So, I’ll keep it simple and not push the feature branch up to GitHub.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.