error: failed to push some refs to 'https://github.com/*******/********.github.io.git'

因为git本地仓库的分支命名和远程仓库的分支命名不同,所以出现错误

用以下代码将命名改了

git branch -m <oldbranch> <newbranch>
#例
git branch -m master main

 

posted @ 2023-09-03 16:25  好(justice)……  阅读(6)  评论(0编辑  收藏  举报