Git WorkFlow
Branch Creation or Switching:
git checkout -b feature-branch
git checkout feature-branch
Merge updates from the main branch into your working branch and resolve any conflicts on the feature branch:
git pull origin main
Coding and Committing:
After coding, add, commit, and push your changes:
git add file-name / git add . to add all files
git commit
git push origin feature-branch
In Github, make pull request (PR) from feature branch to main
Link the pull request to the related task card in Trello, and remove the task card to review stage
Resolve any merge conflicts if indicated in github by repeat step 1-3
Require at least one team member to review and approve the PR.
Once the PR is approved, the reviewer click the merge green button to complete the merge