How to do a rebase with git gui?

Leif Gruenwoldt picture Leif Gruenwoldt · Jan 28, 2011 · Viewed 34.4k times · Source

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

Answer

Ted Percival picture Ted Percival · Feb 8, 2012

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