If you have a minor change for which you don't want to create a new commit. Use
git commit --amend --no-edit
This will allow you to create a new commit but replace the older one. But it will appear as if the old commit was never created. If you need to give a new message use -m flag to give a new message.
Top comments (0)