13 lines · 212 B · Markdown
RawDownload

title: "Add to previous Git commit" date: "2025-03-24" tags: []

git add my-file
git commit --amend --no-edit
  • --amend: Amends previous commit.
  • --no-edit: Use previous commit message.