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