Leif Gruenwoldt Leif Gruenwoldt - 4 months ago 50
Git Question

How to do a rebase with git gui?

I know how to do a git rebase from the command line, but how do you do it with the official git-gui?


Add this to the .gitconfig file in your home directory to add rebase commands to the Tools menu:

[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