git 创建分支推送分支的时候报错:Your configur
错误描述:
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
再次执行推送分支即正常(主要步骤执行图如下)
![](https://img.haomeiwen.com/i14245154/c98c0456ad8b2c92.png)
git 推送分支.png
本文标题:git 创建分支推送分支的时候报错:Your configur
本文链接:https://www.haomeiwen.com/subject/xxhrgltx.html
网友评论