Become a member
to unlock all features

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

Create account

    Change a Commit Message that Hasn't Been Pushed Yet


    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.