【发布时间】:2018-10-02 17:51:17
【问题描述】:
我知道git 存储只是本地的,消息不会暴露给任何远程方,因此消息的相关性远低于提交消息。
由于git stash pop 没有记录在git reflog 中,我似乎没有找到一种方法来获取已明确传递给git stash save 的消息或任何其他方式来检索它。
我经常在 stash 消息中写入信息,我为什么要隐藏以及隐藏的实现有多远,所以它们对我来说非常有价值。
我知道使用分支比使用git stash 有很多优势,几乎没有缺点。我正在养成不再使用git stash 来支持分支的习惯,但是我已经丢失了消息并想澄清一下。
我的git stash pop 输出看起来像
On branch master
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: test
no changes added to commit (use "git add" and/or "git commit -a")
Dropped refs/stash@{0} (958d4b921e7f3e8faa9fd2ecb12af13250e1f739)
【问题讨论】:
标签: git