I have the following scenario on a Git branch.
- Commit 1:
file1
,file2
,file3
added. - Commit 2:
file1
,file3
changed. - Commit 3:
file2
changed. - Commit 4:
file3
changed.
I now have uncommitted changes in file2
, and I would like to retrieve some changes made to file1
and file3
in commit 2, and then create a fifth commit? How can I do that?