I am making a JS library that creates graphs and charts using canvas. I have hosted it on GitHub as a public repository.
So after looking at some other related questions, I have figured out two solutions to keep active releases separate.
Method 1:
- The master branch is named
dev.- All work happens in this branch
- Once a release is ready, a new branch is made.
- Its name would be
Version {Major.Minor.HotFix}
- Its name would be
Method 2:
- The the master branch is named
Version {Latest Version Number} - There is a dev branch.
- Once a new version is ready, the master branch is branched off and the dev branch is merged into the master branch and renamed. Then the work for the next version starts again on the dev branch.
Which one would you recommend? Which one will be clearer to contributors/users?
I hope I am clear, if not, please let me know!
Thanks!