You asked to pull from the remote 'origin', but did not specify a branch. Because this is not the default configured remote for your current branch, you must specify a branch on the command line.
打开gitbash,输入如下指令
git config --global push.default current
git push -u
You asked to pull from the remote ‘origin‘, but did not specify a branch. Because this is not the de
最新推荐文章于 2024-11-22 22:48:52 发布
本文介绍如何解决在使用Git时遇到的未指定分支的推送问题。通过配置默认使用当前分支进行推送,避免在推送时忘记指定分支导致的错误。
3147

被折叠的 条评论
为什么被折叠?



