首页 > 解决方案 > Visual Studio 2019 Github 扩展命令:“pop and restore staged”与“pop all as unstaged”?

问题描述

Visual Studio 2019 for GIT stash 中的以下命令有什么区别? pop and restore staged (--index) pop All as unstaged

在使用https://visualstudio.github.com/时

标签: gitvisual-studio

解决方案


找到一篇好文章:https ://www.thomasclaudiushuber.com/2019/04/10/the-git-stash-functionality-in-visual-studio-2019 - 这是答案:

  • Pop/Apply and Restore Staged – 这将弹出/应用更改到您的分支,它还将确保您之前暂存的文件再次暂存
  • Pop/Apply All as Unstaged – 这会将更改弹出/应用到您的分支,并且不会暂存您之前暂存的文件。

如果您在创建存储之前没有任何暂存文件,那么您将看不到这两个选项之间的差异。


推荐阅读