STC214/git新建仓库推送已有代码

Created Mon, 25 Sep 2023 17:25:33 +0800 Modified Mon, 25 Sep 2023 17:26:48 +0800
46 Words

新建空白仓库推送已有代码用以下流程

echo "# blog" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin git@github.com:STC214/blog.git
git push -u origin main