git ウェアハウスのプッシュ エラー

エラーの背景

github からウェアハウスをクローンした後、gitee にプッシュしたいのですが、プッシュ時に問題が発生します

error: src refspec master does not match any.
error: failed to push some refs to '<REMOTE_URL>'

解決

rm -rf .github
git init
git add -A
git commit -m "init for gitee"
git remote remove origin
git remote add origin 你的gitee仓库地址
git push -u origin main

おすすめ

転載: blog.csdn.net/fly1574/article/details/132894678