Generally, We will add the changes via PR(pull request) to the long-running branches like develop, release, and main branches. But sometimes (for me it happened most of the time) we commit the changes to the main / develop. While pushing to remote we will identify the problem.
I will follow the below steps to move the latest commits to the new feature branch.
Requirement: Commit C7 should be converted as PR to develop branch
More blogs which are related to day-to-day DevOps tasks on the way, please follow for getting notification.