git - 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 ://www.thomasclaudiushuber.com/2019/04/10/the-git-stash-functionality-in-visual-studio-2019 - 这是答案:
- Pop/Apply and Restore Staged – 这将弹出/应用更改到您的分支,它还将确保您之前暂存的文件再次暂存
- Pop/Apply All as Unstaged – 这会将更改弹出/应用到您的分支,并且不会暂存您之前暂存的文件。
如果您在创建存储之前没有任何暂存文件,那么您将看不到这两个选项之间的差异。
推荐阅读
- java - Android许可证状态未知和一个奇怪的问题
- python - 无法使用硒同时从两个不同的深度收集信息
- php - Wordpress 模板找不到 php 文件
- git - git - 在第一次提交后重置更改
- android - 如何在Android中添加完全透明到半透明的渐变
- python - 链表问题
- c# - Firebase 实时 REST onDisconnect
- flutter - Flutter 的漏光效果
- java - 如何通过pdfbox和java向pdf添加多个电子签名
- java - 如何将静态文件复制到 IntelliJ Idea IDE 中的输出目录以进行 java 构建配置?