1×
Become a member
to unlock all features

Create egghead account to access 5000+ tutorials and resources from expert developers.

Create account
Autoplay

    Change a Commit Message that Hasn't Been Pushed Yet

    gitgit

    If you make a mistake in a commit message but HAVEN'T pushed it yet, you can change that commit message with --amend:

    git commit --amend -m "New message"

    This won't change any of the files in your commit - but will rewrite the commit with the new message.