eclipse - 在 Eclipse/EGit 中有没有办法编辑未推送/本地提交的提交消息?

标签 eclipse git egit

如何使用 Eclipse/EGit 编辑我在本地进行但尚未推送到存储库的提交的提交消息?

最佳答案

那将是 Amending Commits 的“EGit User Guide ”部分:

open the Staging View or Commit Dialog again and select the option Amend previous commit in the toolbar.

另见 this tutorial :

Git amend allows to adjust the last commit.
For example you can change the commit message.
The Git Staging view allows you to perform the Git amend command via the highlighted button in the following screenshot.

在“The git commit --amend Command”中查看有关 git commit --amend 的更多信息。

http://www.vogella.com/tutorials/EclipseGit/images/xegitamend10.png.pagespeed.ic.m-4qbTQTEv.png

99sono添加 in the comments :

I use:

Team Synchronizing Prespective > History View > Modify
(submenu) > Reword .
Finally this opens a popup where I can edit the old commit message.

参见“Add ability to reword and squash commits directly from the history view

关于eclipse - 在 Eclipse/EGit 中有没有办法编辑未推送/本地提交的提交消息?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21475844/

相关文章:

java - 如何在 Java 中格式化文件中的文本?

git - git创建分支时出错

git - 从 Github 克隆存储库到 Windows

android - 运行 Android 应用程序时出现 ClassNotFoundException

java - 如何使用 Java 在 git 中进行稀疏校验

android - 请问这个渲染库版本比你eclipse中的ADT插件版本更新怎么办?

java - 使用Eclipse对Tomcat进行远程调试

java - 在保存文件之前,不会删除自定义编译器错误(修复后)

git - 在 Git 扩展中添加 .cu 和 .cuh 作为 'c' 代码

eclipse - 如何使用 Eclipse EGit 从我的服务器 git 存储库下载/克隆一个新分支到我的 PC 中已经创建的本地 git 存储库