When I\'ve worked a bit with my source code, I did my usual thing commit and then I pushed to a remote repository. But then I noticed I forgot to organize my imports in the
Here is a very simple and clean way to push your changes after you have already made a git add "your files" and git commit --amend:
git add "your files"
git commit --amend
git push origin master -f
or:
git push origin master --force