git 初始化一个已经存在的项目,并推到远程

echo "# micro-service" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/haveyb/micro-service.git
git push -u origin main