解决Git更新代码报The current branch is not configured for pull错误

一、现象描述

在Eclipse中使用Git更新代码时,弹窗报了”The current branch is not configured for pull”错误。如下图:

解决Git更新代码报The current branch is not configured for pull错误

解决Git更新代码报The current branch is not configured for pull错误

二、解决办法

①在本地工程目录找到config文件

一般会在你的仓库目录里面可以找到,也可以直接在IDE里面打开,

window ->preference ->team ->git ->configuration ->Repository Settings,Repository选择当前的仓库,然后点右边的open

②修改config文件内容

解决Git更新代码报The current branch is not configured for pull错误

③再执行pull方法

如果发现还有弹窗信息,弹窗信息如下:

解决Git更新代码报The current branch is not configured for pull错误

这个信息说明代码有冲突,要先解决了冲突才能正常pull代码。


=======欢迎大家拍砖,小手一抖,多多点赞哟!=======

版权声明:本文为博主原创文章,允许转载,但转载必须标明出处。