git stash   先把工作区恢复到上次提交的内容,同时备份本地的修改。
如果要放弃本地的修改:
git reset --hard
git pull origin 分支名