Locally, I forgot to create a feature branch from the master branch, and then made a commit of my changes into the master branch.
How can i correct the mistake, so that
git checkout master
git checkout -b my-feature-branch
git checkout master
git reset --hard HEAD~1
git checkout my-feature-branch
Explanation:
master
branch.master
branch.master
branch to the commit before the last one.