Go to Tools -> Add and then enter a custom command i.e. git rebase master.
Select Add globally to have this option appear for all repositories. (It will write the configuration to your ~/.gitconfig for you, as @Ted-Percival mentioned in his answer).
您必须使用图形编辑器 - 普通的旧 vim 不会'不行,但是 gvim 可以。您可以使用任何 gui 编辑器,例如我使用 nedit。每当您需要输入某些内容时,都会弹出该编辑器的单独窗口:最初选择提交、重写提交消息(无论是重写还是压缩提交)等。
You can do a full interactive rebase with git gui, complete with commit selection, rewording and conflict resolution! In addition to Ted Percival's answer, Add this to your ~/.gitconfig:
You must use a graphical editor -- plain old vim won't work, but gvim will. You may use any gui editor, I use nedit for example. A separate window of this editor will pop-up any time you need to input something: initially selecting commits, rewording commit messages (whether for reword or squash commits), etc.
git gui can be used to add files to the index when doing a rebase --interactive (as mention in thegit rebase man page, The GitHub rebase help page or in this git rebase interactive tip article), but not to perform the rebase itself.
(unless, as you saw, you define the command yourself in the Tools section)
发布评论
评论(4)
将其添加到主目录中的
.gitconfig
文件中,以将变基命令添加到“工具”菜单中:Add this to the
.gitconfig
file in your home directory to add rebase commands to the Tools menu:在
git-gui
中:Tools ->添加
,然后输入自定义命令,即git rebase master
。~/.gitconfig
中,正如 @Ted-Percival 在 他的回答)。In
git-gui
:Tools -> Add
and then enter a custom command i.e.git rebase master
.~/.gitconfig
for you, as @Ted-Percival mentioned in his answer).您可以使用 git gui 进行完整的交互式变基,包括提交选择、重写和冲突解决!除了 Ted Percival 的答案之外,将其添加到您的
~/.gitconfig
中:您必须使用图形编辑器 - 普通的旧
vim
不会'不行,但是 gvim 可以。您可以使用任何 gui 编辑器,例如我使用nedit
。每当您需要输入某些内容时,都会弹出该编辑器的单独窗口:最初选择提交、重写提交消息(无论是重写还是压缩提交)等。You can do a full interactive rebase with
git gui
, complete with commit selection, rewording and conflict resolution! In addition to Ted Percival's answer, Add this to your~/.gitconfig
:You must use a graphical editor -- plain old
vim
won't work, butgvim
will. You may use any gui editor, I usenedit
for example. A separate window of this editor will pop-up any time you need to input something: initially selecting commits, rewording commit messages (whether for reword or squash commits), etc.git gui
可用于在执行rebase --interactive
时将文件添加到索引(如git rebase
手册页,GitHub rebase 帮助页面 或在此 git rebase 交互式技巧文章),但不执行rebase
本身。(除非如您所见,您自己在“工具”部分中定义了命令)
git gui
can be used to add files to the index when doing arebase --interactive
(as mention in thegit rebase
man page, The GitHub rebase help page or in this git rebase interactive tip article), but not to perform therebase
itself.(unless, as you saw, you define the command yourself in the Tools section)