针对存储的 Git diff

标签 git git-stash

如何查看存储中对当前工作树所做的更改?我想知道在应用它们之前会进行哪些更改!

最佳答案

查看最近的存储:

git stash show -p

查看任意存储:

git stash show -p stash@{1}

来自 git stash 联机帮助页:

By default, the command shows the diffstat, but it will accept any format known to git diff (e.g., git stash show -p stash@{1} to view the second most recent stash in patch form).

关于针对存储的 Git diff,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7677736/

相关文章:

git - 如何打印当前分支以外的分支的日志?

git - 使用 git stash branch 时找不到存储

Git 在日志中显示所有分支(但不存储)

git - 如何在 git-bash 中修复 "bfg: command not found"

node.js - 在 Mac 上打开 Electron 应用程序时出现问题 - "the git command requires command line developer tools."

git - 如何将 Git 版本控制 (Bitbucket) 添加到现有源代码文件夹?

自定义 css 文件和主题的 Git 工作流程

git - 我可以让 "git stash"默认自动包含未跟踪的文件吗?

eclipse - 无法在 EGit 中找到存储/应用功能

github网络展示了一个神秘的分支