Git management
Branches
CORE.Drop.Desktop used git flow. In summary:
The
main
branch is what's currently in productionThe
develop
branch is the latest stable in progress branch. After every sprint, thedevelop
branch is merged intomain
.For each issue, a
feature
branch is created. Once the feature is complete, then a PR should be opened todevelop
and reviewed by a colleague.The naming convention used for feature branches in CORE.Drop Desktop is
dev_issueXX_shortSummaryOfIssue
, whereissueXX
represents the issue number andshortSummaryOfIssue
represents a short description of the issue (perhaps with inspiration from the name of the issue on github). Camel case is preferred for the summary. For example:dev_issue12_unitTestProject
would be a good name for this issue.A
hotfix
branch can be created directly frommain
and merged back tomain
through a PR. A hotfix is a small bugfix.
Git commits
Small atomic commits are helpful when debugging and understanding how the code has changed over time. It also helps if the commit is tagged with Github issues.
All commits should be tagged with the issue they are addressing
A meaningful commit message is mandatory
Code review / pull request
By having the habit of opening a PR before merging to master helps co-developers to review the code before it goes into production.
Last updated