git commit –amend without asking for message [duplicate] June 20, 2023 by Tarik Try git commit --amend --no-edit.