git commit --amend Update a commit message or add new files to last commit

This lesson is available for PRO members or as a single course purchase. Sign-in and choose a plan below.
Get Unlimited PRO Access


*Enrollment provides full access to this course (and updates) for life.

Update the message on your last commit:

command line
git commit --amend -m "better message"

Include a file you forgot on your last commit.

command line
git add <your-file>
git commit --amend --no-edit


Ask questions via GitHub below OR chat on Slack #questions