您可以按照以下步骤将Git仓库从本地同步到远程服务器:
git remote add origin <远程仓库地址>
main
git push -u origin main
git pull origin main
请注意,在推送代码之前,请确保您具有正确的权限和访问权限来访问远程仓库。