Sometimes we forget to commit files, leave console.log
's in or whatever.
To avoiding commits like removed console.log you can add your changes to the last commit (amend
) and reuse the old commit message (reuse-message
).
git commit --amend --reuse-message HEAD