We’re ready to push our dev branch to our prod (master) branch but I wanted to see if there was a best practices on doing this. Seems too easy to just git push dev master.
Right now our prod (master) is tagged 1.0 and dev is going to be master 1.5.
Should we simply push dev master and tag? Some have mentioned rebasing but not sure…
I think you’re confusing your nomenclature here. git push moves changes from one repository to another. What I think you mean is merge your dev branch into your prod branch. The
git push dev mastercommand you suggest is thus confusing. I believe Git would interpret this as push branchmasterto repositorydev.I’m also a bit confused as to what result you’re looking for with the tagging. I think what you’re saying is once you merge dev into prod and release, prod will be tagged ‘1.5’. In this case, you’re looking for:
Rebasing is just a strategy to make your history look a bit more pretty, but it sounds like you have bigger things to worry about.