git pull 的时候发现有提示你ahead of xx commits 这个时候怎么办呢?

直接一句话定位到远程最新分支

git reset --hard origin/分支名称