git - 强制在 git stash 上发送消息

标签 git git-stash

我正在使用git stash很多。大多数时候我忘记设置消息(git stash save <message>)。

如何在正常 git stash强制发送消息命令?

来自 git stash 帮助页面:

Calling git stash without any arguments is equivalent to git stash save. A stash is by default listed as "WIP on branchname …", but you can give a more descriptive message on the command line when you create one.

最佳答案

无需强制执行任何操作,您可以 stash 自己的消息: git stash save“您的 stash 消息”

关于git - 强制在 git stash 上发送消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38872509/

相关文章:

git - 当 repo 以深度 = 1 克隆时获取最新标签 `git describe --tags'

git - 本地使用github,无需发布到github服务器

git - 如何在忽略本地更改的同时进行 git pull?

Git:如何在最后一次 stash 之前获得 stash ?

Git 存储 : "Cannot apply to a dirty working tree, please stage your changes"

java - Sonarqube:缺少以下文件的 blame 信息

git - 从 git 中的旧提交恢复文件

git - 从上游 github 存储库获取失败挂断

git - 我如何从 git stash 中提取单个文件(或对文件的更改)?

git - 为什么 git stash pop 说它无法从存储条目中恢复未跟踪的文件?