git rewinding head to replay your work on top of it...

git fetch origin

git reset --hard origin/<branch>

原文地址:https://www.cnblogs.com/YYRise/p/8421080.html