私信  •  关注

SOLO

SOLO 最近创建的主题
SOLO 最近回复了
6 年前
回复了 SOLO 创建的主题 » 从远程向我的服务器中使用git pull时出错
git stash
git pull <remote name> <remote branch name> (or) switch branch
git stash apply --index

第一个命令将您的更改临时存储在 the stash 并从工作目录中删除它们。

第二个命令切换分支。

第三个命令恢复存储在存储库中的更改 --index 选项可用于确保阶段文件仍处于阶段)。