git append previous commit code example
Example 1: added changes to a specific commit
git add <my fixed files>
git commit --fixup=OLDCOMMIT
git rebase --interactive --autosquash OLDCOMMIT^
Example 2: add change to last commit
$ (some_branch) git commit --amend