Search code examples
gitgit-rebasegit-gui

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?


Solution

  • 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