I have a range of commits of another whose modifications I would like to import in my current branch without creating the commit.
I have seen that the cherry-pick
command has the option -n
to avoid commits. However, when conflicts arise, I do not know how to solve them since with cherry-pick normally one does git add
and then git commit -c <hash>
.
Is there a way to import the modifications introduced by these commits into the current branch without committing?
I was thinking about creating a patch somehow but I do not know if that's even possible.