文章目录
1、git branch后出现END,无法返回
在终端执行 git config --global core.pager more
这条命令设置当输出内容较多时所使用的分页器,此处我们使用more命令作为分页查看器。
2、src refspec main does not match any
1、情景再现:
git push -u origin main 提交项目到远程仓库时报错
$ ahua win64 ~/Desktop/vue (master)
$ git push -u origin main
error: src refspec main does not match any
2、原因:
提交到远程仓库中的分支和本地的仓库的分支不一样,可以看到上面代码块中的分支