I made 6 commits on the master(main) branch, and I added a new branch which starts from the 2nd commit of master branch. But that was yesterday’s work. Today, I want to make another brand new branch which starts from the 3rd commit of the master branch. Please tell me how to do that.
I was making commits as usual on master branch….and in that way I made a total of 6 commits in that branch. And, in advance, I already created a new branch from the 2nd commit of master branch, right? In that branch, I made 4 commits. So I wish to create another branch which starts from the 3rd commit of the master branch. But in order to do so, I was unable to get back to the previous commits, because, I Don’t know how to do that! Please let me know, how to achieve what I want, by telling me the necessary git commands/important steps.
Karthik is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.