Should Patches have own branch in git workflow?

48 Views Asked by At

I am reading here about git branching strategie. Where to assign patches? should patches have their own branch? If yes where should patches branched from? from master branch?

1

There are 1 best solutions below

1
On

If by "patches" you mean hotfixes to production, then yes, each one should be on its own branch named hotfix/xxx, where "xxx" is something that describes the hotfix. These branches should be branched off of master, and when ready should be merged into both master and develop.