Branching Strategy
asya982 edited this page Mar 20, 2023
·
21 revisions
We have main and dev branches. All feature branches must be merged into dev branch!!! Only the release should merge into the main branch!!!
-
Option 1
- π― Clone front-end or back-end repo to your local machine using
git clone
- π― Clone front-end or back-end repo to your local machine using
-
Option 2
- Create new feature branch from develop branch using:
git checkout -b issue_4_feature_name
- Create new feature branch from develop branch using:
- π
πΌ Add new files and make commits to your feature branch using:
git add .
,git commit -m "commit message"
- π Push your feature branch to remote origin using:
git push issue_4_feature_name
- If remote develop is ahead of your local branch download new commits using:
git pull
- π Create a new pull request and asign at least 2 people to check your changes in order to merge it
- feat (Feature) β Use when new functionality gets added to the application.
- fix (Fix) β Use when changes made by a commit fix errors in already existing parts of the application without changing its functionality.
- build (Build) β Use to make changes to the build system or external dependencies that are required for the application to work.
- chore (Chores) β Use when changes are not related to the operation of the application.
- ci (Continuous Integrations) β Use when changing the continuous integration configuration.
- docs (Documentation) β Use when changing the documentation, such as typo fixes, adding languages, etc.
- refactor (Refactoring) β Use when there are changes in the structure of the code that don't affect the functionality.
- revert (Reverts) β Use for a commit that reverts the previous changes that have been made by mistake or with some violations.
- style (Style) β Use for changes in the style of the code, without changing its structure (adding/deleting whitespace/newlines, etc.).
- test (Testing) β Use when changing the testing system like adding new tests or changing old ones.
fix: /users api endpoint error fix
feat(api): add /documents endpoint
<type>(feature/fix)-Task β-short task name