How to do a rebase with git gui?

后端 未结 4 758
独厮守ぢ
独厮守ぢ 2021-01-31 07:42

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

4条回答
  •  渐次进展
    2021-01-31 08:15

    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
    

提交回复
热议问题