how to update last commit in git code example Example: add change to last commit $ (some_branch) git commit --amend