Is it possible to move the changes in a commit to before other changes on the tree so I can test those commits.
In this example I want to move ‘Romoved sess_match_useragent’ to before ‘Updated core to 2.1.0’ in the tree

Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, with
git rebase -i refspec.Here,
refspecwill be the identifier (either a SHA1 or a relative refspec) of the commit preceding your “Updated core” commit. This will open an editor with the commits and their order: move thepickline for your commit right before the “Updated core” one and quit the editor: git will rewrite the branch.Note that you may have to solve conflicts, however.
Read the help in the editor along with the list of commits, too: it contains a lot of useful tips, you can do plenty. For instance, just
rewordcommit messages if you have made spelling mistakes…In your case, as pointed out,
refspeccan heHEAD~17, ie “17 commits before ref HEAD” (HEAD is always the tip of the branch you are currently on).