How to know if there is a git rebase in progress?

后端 未结 7 530
说谎
说谎 2020-12-02 18:02

When I start a git rebase -i, I can issue commands like git rebase --continue, or git rebase --abort. Those commands only work if a re

7条回答
  •  臣服心动
    2020-12-02 18:55

    If you have EasyGit, eg status will tell you:

    $ eg status
    (Not currently on any branch.)
    (YOU ARE IN THE MIDDLE OF A INTERACTIVE REBASE; RUN 'eg help topic middle-of-rebase' FOR MORE INFO.)
    Changes ready to be committed ("staged"):
        modified:   .gitmodules
        renamed:    config_loader.rb -> code/config_loader.rb
    Newly created unknown files:
        vendor/
    (YOU ARE IN THE MIDDLE OF A INTERACTIVE REBASE; RUN 'eg help topic middle-of-rebase' FOR MORE INFO.)
    

    In a colored terminal, the notification is very prominent:

    <code>eg status</code> middle-of-rebase demonstration screenshot

    (eg help topic middle-of-rebase displays the documentation “How to resolve or abort an incomplete rebase”.)

提交回复
热议问题