简体   繁体   English

Visual Studio 2019 Github扩展命令:“弹出并还原暂存”与“全部暂存暂存”吗?

[英]Visual Studio 2019 Github extension commands: “pop and restore staged” vs “pop all as unstaged”?

What is the difference between the following commands in Visual Studio 2019 for GIT stash? Visual Studio 2019中的GIT隐藏以下命令之间的区别是什么? pop and restore staged (--index) pop All as unstaged

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

Found a good article : https://www.thomasclaudiushuber.com/2019/04/10/the-git-stash-functionality-in-visual-studio-2019 - and here is the answer: 找到了一篇很好的文章: https : //www.thomasclaudiushuber.com/2019/04/10/the-git-stash-functionality-in-visual-studio-2019-这是答案:

  • Pop/Apply and Restore Staged – this will pop/apply the changes to your branch and it will also ensure that files that you had staged before are staged again 弹出/应用和恢复已暂存-这将弹出/将更改应用于分支,还可以确保再次暂存之前已暂存的文件
  • Pop/Apply All as Unstaged – this will pop/apply the changes to your branch and it won't stage the files that you had staged before. 弹出/全部应用为未暂存 -这将弹出/将更改应用于分支,并且不会暂存之前暂存的文件。

If you hadn't any staged files before you created the stash, then you won't see a difference between the two options. 如果在创建存储之前没有任何暂存文件,那么这两个选项之间不会有任何区别。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM