Devops Interview: GIT Series: Q6. Modify Last commit

Опубликовано: 19 Февраль 2026
на канале: DevopsChallengeHub
54
2

During a code review, your team asks you
to modify the last commit. How can you
make changes to the commit message or
the staged files of the last commit?
1. git amend
2. git commit --amend
3.git revert HEAD
4. git reset HEAD~1