Skip to content

Instantly share code, notes, and snippets.

@brinyemp4
brinyemp4 / How the challenge was solved?
Created April 18, 2023 21:40
A usecase of rebase with solution
Question: Let's say I have a stable project on `master` branch having commit message "A-message", my 2 team members are working on 2 individual features - `useragent` (commit message "B-message") & `base64` (commit message "C-message"). They both have raised 2 different pull requests and I have to take care of both of them, then following solution is helpful.
Challenge is how to set commit history in such manner that over `master` branch, I will have the following sequence.
```
C-message
B-message
A-message
```
Solution: