← back to diagnosis

add file to existing commit

safe

You forgot to include a file in your last commit. Stage it and amend.

$ git add <path to file>
$ git commit --amend --no-edit

--no-edit keeps the same commit message. Drop it if you want to update the message too. Only do this if you haven't pushed yet.