git pull 报错Your configuration specifies to merge with the XXX from the remote, but no such ref was..

翻译过来的大致意思是:

你的配置指定与ref 'XXX’合并 从远程,但没有这样的引用。

打开.git文件夹
打开config文件

[branch "master"]
	remote = origin
	merge = refs/heads/XXX

上诉XXX应该和 branch后面的分支名称保持一致。如果不一致就会报错,更改之后,git pull就成功了。