krisyotam
/
til
Code
Issues
Pull Requests
Antique
Wiki
Insights
/
til
/
technology
/
add-to-previous-git-commit.md
KY
Kris Yotam
reclassify: 73 entries moved to correct topics (programming, technology, etc.)
ebf4839
7 months ago
History
Preview
Code
Blame
13 lines · 212 B · Markdown
Raw
Download
Copy shown lines
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.
--- title: "Add to previous Git commit" date: "2025-03-24" tags: [] --- ```bash git add my-file git commit --amend --no-edit ``` - `--amend`: Amends previous commit. - `--no-edit`: Use previous commit message.