I am using git using and want to get code from previous commits to the head. I have figured out a way to do this but that seems more like a hack, I am wondering if there is a better way of doing it.
The method I used is as follows: I involve going to that commit, branching, making changes to desired files, committing it, checking out to master, and mering it the new branch created.
- checkout to
- creating a branch
- making inconsequential changes to the files
- committing them
- checking out master
- merging the new branch with master