暂存(Stash)本地更改 如果你希望暂时保留本地更改,但又不想现在提交(比如你还没有完成某个功能),可以使用 git stash: git stash git pull 完成合并后,你可以使用 git stash apply 恢复你的更改: git stash apply 直接 git rebase 就可以了