git add changes to before last commit code example Example: add changes to last commit git add the_left_out_file git commit --amend --no-edit