Now there is a branch(branch1),
three people P1 P2 P3
they develop together on branch1
with the comimit log
P1 commit1
P2 commit2
P3 commit3
P3 commit4
P1 commit5
P2 commit6
...
P1 commit100
don't need to pay attention to the content of the submission records.
I just want to give an example of how they freely submit on this branch,
and there is a lot of commits
I want to create a new branch(branch2)
merge all code from branch1 into branch2
but each person will only have one commit,
such as
P1 commit1
P2 commit2
P3 commit3
May I ask if this is achievable? If possible, what should I do?
I don't know if these commands will work, such as
git cherry-pick
git rev-list
git filter-branch
git commit-tree
...
and complete interaction through scripts