The company in which you work hires some trainees who take care of small tasks of several languages and different parts of the program (in order to enable them), but recently one of our trainees did some commits of one branch in another in our remote repository, in order not to delete the branch, recreate it and make the changes in some commits to make it, I would like to know if there is any method of:
- "Rewrite" the commits, ignoring those who has no connection with the branch, redoing the history of the remote branch.
- Save the changes made to the commits in the wrong branch so that they will be placed in the correct branch in the future
- Keep history with changes to the right date and time
I'm working with bitbucket and TortoiseGit.