Create a new branch for a specific issue: git branch <issue_x>
Navigate to that issue's branch: git checkout <issue_x>
Confirm you are in the correct branch: git branch (There should be an asterisk symbol next to the current branch) or git status (It will tell you: "On branch ")
Complete task within this branch
Save and commit the changes you made in this branch:
Reference
Steps:
git branch <issue_x>
git checkout <issue_x>
git branch
(There should be an asterisk symbol next to the current branch) orgit status
(It will tell you: "On branchgit status
git add .
git commit -m "<Insert message here>, closes #<Insert issue number>"
main
branch:git checkout main
issue_x
withmain
branch:git merge <issue_x>
git push origin main