git 创建分支推送分支的时候报错:Your configuration specifies to merge with the ref 'refs/heads/WishLight_Exten...

错误描述:

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 configuration specifies to merge with the ref 'refs/heads/WishLight_Exten...)