I like to do development on my development branch then merge into master when I am ready to push to production. As long as I don't commit anything to the master branch all goes smoothly.
However, I have come across situations where I have committed something to the master branch that conflicts with something that was changed on the development branch. When I merge the development branch into the master I have to resolve the conflict. No big deal, but then in order to make sure the development branch has everything in the master branch (making sure development is up-to-date) I merge the master branch in and end up having to resolve the conflicts again.
I've heard that rebasing is generally bad, especially for things you are pushing out publicly.
Is there a better way to manage this type of setup?
Periodically merge from the master to your development branch, and resolve any conflicts then. (If you're doing that regularly, conflicts will generally be very minor.)
By the time the merge back to master happens, development shouldn't conflict at all.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With