Skip to content

Latest commit

 

History

History
11 lines (7 loc) · 372 Bytes

amend.md

File metadata and controls

11 lines (7 loc) · 372 Bytes

Amend commit

Sometimes we forget to commit files, leave console.log's in or whatever.

To avoiding commits like removed console.log you can add your changes to the last commit (amend) and reuse the old commit message (reuse-message).

git commit --amend --reuse-message HEAD

Source