NPM Module for when you've committed to the wrong branch
To install git-fuck simply use npm
npm install git-fuck -g
Whenever you've pushed something to the wrong branch simply type:
git-fuck <correct-branch-name>
For better usability use it with this alias:
git config --global alias.fuck git-fuck
Now you can use it with the command:
git fuck <correct-branch-name>