“获取包”失败,并出现“ git-pull损坏”

I am having trouble with git and golang. I just installed go version go1.8 linux/amd64 now and when I execute any go get package commands, I receive this message:

git pull --ff-only
fatal: 'pull' appears to be a git command, but we were not
able to execute it. Maybe git-pull is broken?

So, I reinstalled git twice by doing:

  • yum reinstall git
  • yum remove git, yum clean all, yum install git

But, I am still getting the same error message.

What else can be giving me problems?

The current version of git is git version 1.8.3.1 and my OS is CentOS7.