Workflow
When using git to collaborate with others, the following workflow should be taken:
git checkout mainto switch the local branch to main.git pull origin mainto pull the remote main branch to the local branch to catch up the work.git checkout -b newLocalBranchNameto create a …