美文网首页
git 创建分支推送分支的时候报错:Your configur

git 创建分支推送分支的时候报错:Your configur

作者: Rinaloving | 来源:发表于2021-09-16 10:28 被阅读0次

错误描述:

Your configuration specifies to merge with the ref 'refs/heads/WishLight_Extension' from the remote, but no such ref was fetched.
1. 切换到主分支(或者被依赖的分支,也就是你从哪个分支上拉取新的分支),这里是master分支
switched to branch 'master'
2. 执行以下命令
git pull

git fetch -p

3.切换到新分支
git checkout WishLight_Extension
4. 根据提示执行
git branch --unset-upstream
//再次执行
git checkout WishLight_Extension
//然后执行
git branch --set-upstream-to=origin/master WishLight_Extension
再次执行推送分支即正常(主要步骤执行图如下)
git 推送分支.png

相关文章

网友评论

      本文标题:git 创建分支推送分支的时候报错:Your configur

      本文链接:https://www.haomeiwen.com/subject/xxhrgltx.html