-
Notifications
You must be signed in to change notification settings - Fork 0
Contributor Documentation
We follow a trunk-based development strategy, which means that the main branch, often referred to as 'trunk' or 'master,' is the primary branch for development. Feature development is done directly on the main branch or short-lived feature branches.
We are a small team so we will work as a pair where the pair reviews pull requests of each other.
For each significant feature or task, create a dedicated branch. This branch should be short-lived and merged back into the main branch promptly after completion.
Update from main as much as possible to avoid large conflicts.
Feature branches should be named with a clear and descriptive format:
feature/{brief-description}
For example:
feature/user-authentication
If you are addressing a bug, name the branch as follows:
bugfix/{brief-description-or-bug-number}
For example:
bugfix/fix-login-issue
Hotfix branches are for urgent fixes in production but Fix branches are fixes of some features in development. Name them like:
hotfix/{brief-description}
fix/{brief-description}
For example:
hotfix/resolve-security-vulnerability
-
Clone the Repository:
git clone https://github.com/TurTaskProject/TurTaskWeb -
Create a Feature Branch:
git checkout -b feature/descriptive-feature-name -
Make Changes and Commit and Update from main regularly:
# Update from main git fetch git rebase origin/master # Make Changes and Commit git add . git commit -m "Your commit message"
-
Push Changes:
git push origin feature/descriptive-feature-name -
Create a Pull Request:
- Open a pull request from your feature branch to the main branch.
- Provide a clear title and description for your changes.
- Assign reviewers if necessary.
-
Review and Merge:
- Address any feedback from reviewers.
- Once approved, merge your branch into the main branch.
You can navigate through this wiki with a sidebar on the right😉