新建空白仓库推送已有代码用以下流程
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
新建空白仓库推送已有代码用以下流程
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