W
W
webe2018-08-11 19:08:40
git
webe, 2018-08-11 19:08:40

How to transfer part of the commits from the master to the feature?

I'm on the master branch and made about 5 commits, now I'm standing on top.
I realized that the last 5 commits had to be done in the feature/menu branch.
Question: how to make the last 5 commits disappear from the place and be transferred to the new feature/menu branch?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
SagePtr, 2018-08-11
@SagePtr

If you didn’t have time to push to the server, then cherry-pick these 5 commits to a new branch, and roll back the master pointer five commits back

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question