300字范文,内容丰富有趣,生活中的好帮手!
300字范文 > git提交报configuration specifies to merge with the ref ‘’refs/heads/master‘

git提交报configuration specifies to merge with the ref ‘’refs/heads/master‘

时间:2018-10-30 09:05:43

相关推荐

git提交报configuration specifies to merge with the ref ‘’refs/heads/master‘

问题

建立新的分支,当咱们执行git pull,出现以下错误git

configuration specifies to merge with the ref ‘’refs/heads/master’

解决

1、切换到主分支(或者被依赖的分支,也就是你从哪一个分支上拉取新的分支)

git checkout master

2、执行命令初始化仓库分支

git initgit pull

3、切换到新的分支

git checkout main

4、执行提示的命令

git branch --unset-upstream

5、执行命令

git push origin mastergit pull

6、执行命令

git branch --set-upstream-to=origin

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。