我正在使用SourceTree(mac)。 我有一些隐藏的变化。
如何为每个存储提供自定义名称以更好地识别代码应该执行的操作?
现在当我藏匿它时,在[branchname] [最后提交消息]上的WIP表格中获得一个自动名称
I am using SourceTree (mac). I have a few stashed changes.
How do I give each stash a custom name to better identify what the code is supposed to do?
Right now when I stash it gets an automatic name in the form WIP on [branchname] [last commit message]
最满意答案
您可以在创建存储时打开的对话框中为存储提供名称:
暂存一些更改的文件 单击工具栏中的“存储”按钮 将显示以下对话框。 在“消息”字段中提供名称。 提供的“消息”将用作存储的名称
如果您尝试重命名现有存储,看起来目前无法在SourceTree中执行此操作 - SourceTree中的唯一选项是应用或删除选定的存储。
Git一般不提供重命名存储的内置方法 - 共识似乎是删除并使用新名称重新创建存储。 请参阅如何重命名git stash以查找更详细地解决此问题的问题。
You can provide a name for the stash in the dialog box that opens when you create a stash:
Stage some changed files Click the "Stash" button in the toolbar The following dialog shows up. Provide a name in the "Message" field. The provided "Message" will be used as the name of the stashIf you are trying to rename an existing stash, it looks like there's no way to currently do this in SourceTree - the only options in SourceTree are to apply or to delete the selected stash.
Git in general does not provide a built-in way to rename a stash - the consensus seems to be to drop and recreate the stash with a new name. See how can I rename a git stash for a question that addresses this in more detail.
更多推荐
发布评论