简体   繁体   中英

Cherry Pick a Squashed Commit

I have two main branches, staging and master . I have a few commits and I have pushed those changes to a branch say xyz whose base branch is staging and have created a pull request for staging branch. All these commits has been squashed into a single commit.

Is it possible to cherry pick this squashed commit and apply this cherry pick to a new branch started from master , so that I can create the same pull request to master branch also.

Is it possible to cherry pick this squashed commit and apply this cherry pick to a new branch started from master

Yes: git cherry-pick <sha of squashed commit>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM