- Create an issue or pick an existing one.
- Create a new branch from
mainwith the issue number and a short description.
- Update local repository with
mainbranch.
git checkout main
git pullThis will also give you the branch from the remote repository.
- Switch to your feature branch.
git checkout feature/issue-123-description- Develop your feature or fix.
- Stage and commit your changes.
git add .
git commit -m "Fix issue #123: Description"- Push your branch to the remote repository.
git push origin feature/issue-123-description- Create a pull request on GitHub/GitLab/Bitbucket.
- Assign reviewers and add labels.
- Wait for the CI/CD pipeline to pass.
- Merge the pull request after approval.
- Delete the feature branch.
- Update your local repository with the latest changes.
git checkout main
git pull