【发布时间】:2020-11-23 07:41:23
【问题描述】:
git的命名约定已经改变,现在建议为Master分支使用其他命名。
我在尝试将我很棒的项目初始化为一个名为 Main
的新 git 存储库时遇到了一个问题git init
git add -A
git remote add origin https://github.com/{MYREPO}.git
git push -u origin main
最终抛出以下错误
error: src refspec main does not match any.
error: failed to push some refs to 'https://github.com/{MYREPO}.git'
git 版本 2.16.1.windows.4
【问题讨论】:
标签: git rename naming-conventions git-push