Ted*_*val 45
将其添加到.gitconfig主目录中的文件,以将rebase命令添加到"工具"菜单:
[guitool "Rebase onto..."]
cmd = git rebase $REVISION
revprompt = yes
[guitool "Rebase/Continue"]
cmd = git rebase --continue
[guitool "Rebase/Skip"]
cmd = git rebase --skip
[guitool "Rebase/Abort"]
cmd = git rebase --abort
[guitool "Pull with Rebase"]
cmd = git pull --rebase
Run Code Online (Sandbox Code Playgroud)
Lei*_*ldt 14
在git-gui:
Tools -> Add然后输入自定义命令即git rebase master. ~/.gitconfig为您编写配置,正如@ Ted-Percival在他的回答中提到的那样).您可以使用完整的交互式rebase git gui,完成提交选择,重写和冲突解决!除了Ted Percival的回答,请将此添加到您的~/.gitconfig:
[guitool "Rebase interactive"]
cmd = EDITOR=gvim git rebase -i $REVISION
revprompt = yes
Run Code Online (Sandbox Code Playgroud)
你必须使用图形编辑器 - 普通的旧版本vim不起作用,但gvim会.您可以使用任何gui编辑器,nedit例如我使用.每当您需要输入内容时,都会弹出一个单独的编辑器窗口:最初选择提交,重写提交消息(无论是reword还是squash提交)等.
| 归档时间: |
|
| 查看次数: |
28534 次 |
| 最近记录: |