I am working on a project using git for version control. One contributor for the project, is new to using git and accidentally pushed directly to master instead of an existing feature branch.
I would like to move these changes from master to the feature branch. I know how to undo the changes but I was wondering if there was a way for me to take the commits and move them directly to another branch.