git init
git add .
git commit -m "初始提交"
git remote add origin <远程仓库URL> ssh 或 git remote add origin https的url
git push -u origin master # 或者使用 git push -u origin main,取决于你的默认分支名称
git fetch
git checkout main
git merge master --allow-unrelated-histories
Git pull origin main
Git push origin main