All cards

Card #061 · Commit

Adjusting the message of the last commit without an editor

#061: Adjusting the message of the last commit without an editor. git commit --amend -m 'text'. git commit: Command to create a commit. --amend: option to adjust the last commit. -m: option to pass the message. 'text': new commit message. This will change the commit hash so use only with unpublished commits.