I have done by mistake the changes on the master, instead of my new branch. I want to move them on the new branch. The problem is that I have done commits, and I have not seen that it is on master. When I wanted to do push... I have seen it. Is there a way to go back and move the changes from master to the branch, without redoing all that I have done once?
Here is how it looks like:
* d4452d9 (HEAD, master) Added saving images for viewing
| * 129aa64 (branch2) Added interiors_folder in config file
| * ae892d8 Added images of interior
|/
* c08a8d4 (origin/branch1, branch1) Before new branch
* b7b9dd5 (origin/master) Removed printing
And I want it like this:
* d4452d9 (HEAD, branch1) Added saving images for viewing
| * 129aa64 (branch2) Added interiors_folder in config file
| * ae892d8 Added images of interior
|/
* c08a8d4 (origin/branch1, branch1) Before new branch
* b7b9dd5 (origin/master) Removed printing