There are solutions to similar problems in stackoverflow. But I wanted to make sure my question falls in the same category: I did a git checkout master
I made some changes(uncommitted) and realized that the changes should be made by creating a new branch instead of master.
Is there a command where I can move the changes to a new branch and revert the master in my local branch to the state it was before I made those changes?