Applying commits from one subtree to another in same repo
问题 I've been using git-p4 to clone parts of a Perforce repo into a git repo. The tree I've checked out has the following Perforce "branch" structure: repo/releaseA repo/releaseB repo/featureA repo/featureB I have a bunch of git commits in my local git repo to the featureA directory; however, I'd like to "rebase" those commits onto the featureB directory instead. Is there a way to translate a set of patches/commits that were originally applied to one directory onto another instead? 回答1: Yep. If