I have a problem to solve on Git , here are the sequence of steps we i perform
Let say i make 3 commits on master
- commit-1
- commit-2
- commit-3
Now i checkout to commit-2
git checkout commit-2
then i make commit-4
Now i want to retain all four commits on the master branch and my master branch's git log should look in the following order
Commit-3
commit-4
commit-2
commit-1
How do i achieve it ?