Open LogicUI opened 3 years ago
The source code of HEAD always reflects a production-ready-state.
The source code of the HEAD always reflects a state with the latest delivered development changes for the next release.
Types of Supporting Branch | Description | Branch off from | Merge back into | Naming Conversion | Example |
---|---|---|---|---|---|
Feature | Used to develop new features | develop | develop | feature/ticket-summary | feature-recipe-title |
Bugfix | Arise from the necessity act upon an undesired state of development | develop, release branches | develop, release branches | bugfix/ticket-summary | bugfix-title-does-not-display-clearly |
hotfix | Hotfix branch arises from the necessity to act immediately upon an undesired state of a live production version. | master | master develop | hotfix/ticket-summary | hotfix/login-error |
Release | Release branch supports the preparation of a new production release, reflects the desired state of the new release | develop | master, develop | release/release-number | release/1.0.0 |
Commit messages should follow based on the branch name assigned. E.g Feature/recipe-title.
Any feedback or changes made after a PR is made should edit the existing commit name instead of creating a new commit.
this can be done using the following command
after adding some changes to local git repo..
git commit --amend ( modifies the existing branch with new changes)
Squash, fast-forward the only is set to the default and only merge strategy. If the source code is out of date with the target branch. reject merge request. Otherwise, combine all commits into one new squash commit on the target branch.
README should have the following Info 1) Main branches dev/prod 2) Which branch to branch out doing development and deployment 3) Naming conventions Must include Feature/, Bugfix/
refer to https://docs.chingu.io/techres/gitbranches/