git checkout -- <file>
git add/rm <file>
git reset HEAD <file>
git commit -m "<message>"
git reset --soft HEAD~1
git push (origin <branch>)