Can I rebase a Git branch without modifying my working copy?

后端 未结 7 2037
南旧
南旧 2020-12-08 09:16

Suppose I have my \"master\" branch checked out. I\'ve committed some production changes to \"master\", and now I want to rebase my \"experimental\" branch onto the latest m

7条回答
  •  渐次进展
    2020-12-08 10:10

    I've created a small script to do this on linux. It's based on Jefromi's answer and a few additions (mainly, setting up alternates so the object database isn't copied, and only pulling the needed branches). Some of you may find it useful: https://github.com/encukou/bin/blob/master/oot-rebase

    If it doesn't do quite what you like, pull requests are welcome :)

提交回复
热议问题