git init
git add .
git commit -m "xxx"
git remote add origin xxx.git
git pull
git push -u origin master
git checkout -b xxx
Q: Can't Update No tracked branch configured for branch main or the branch doesn't exist.
To make your branch track a remote branch call, for example,git branch --set-upstream-to=origin/main main
git branch --set-upstream-to=origin/main main
git branch --set-upstream-to=origin/develop develop
Q: fatal: refusing to merge unrelated histories
git pull origin main --allow-unrelated-histories