git commit --amend meaning code example Example 1: git amend git commit --amend Example 2: git commit amend git commit --amend --no-edit