Hg: How to do a rebase like git's rebase

后端 未结 5 1553
小鲜肉
小鲜肉 2020-11-29 14:58

In Git I can do this:

1. Start working on new feature:
$ git co -b newfeature-123  # (a local feature development branch)
do a few commits (M, N, O)

master A---B         


        
5条回答
  •  南方客
    南方客 (楼主)
    2020-11-29 15:33

    Assuming you have a modern Hg installation, you can simply add:

    [extensions]
    rebase = 
    

    to ~/.hgrc.

    Then you can use the commands hg rebase, hg pull --rebase, or hg help rebase.

提交回复
热议问题