git add file current commit prpare-commit-msg code example Example: git add file to last commit git add the_left_out_file git commit --amend --no-edit