Git Commit Mistakes Let’s say you are working on a feature improvement on the staging branch, and after you have completed your work you go to commit it and after writing your commit message and pressing enter, you remember that you can’t push to the staging branch directly and you need to create a feature branch to push your changes to the repository.
I have made this mistake way to often, and it is frustrating remembering what you need to do to fix it.