git stash git pull <remote name> <remote branch name> (or) switch branch git stash apply --index
第一个命令将您的更改临时存储在 the stash 并从工作目录中删除它们。
第二个命令切换分支。
第三个命令恢复存储在存储库中的更改 --index 选项可用于确保阶段文件仍处于阶段)。
--index