Git amend can add stuff to a previous commit. It's quite handy if you, for example, fix some url's in a test file, commit and then notice you had similar stuff that should've been in the same commit.
Kalle Tolonen · 8.7.2025 · 1 min read
git git amend
To add more stuff to a previous commit you only need to amend it:
git commit --amend
Keep or modify the commit msg and you're all set! This is completely safe if you haven't pushed the commit to remote.
All articles
No published comments yet.
Your comment is held for review before it appears publicly.
Name:
Email: Your email is never published or shared.
Message: Up to 2,000 characters.
Captcha:
Verification expired. Tick the captcha again, then submit immediately.
Captcha verification could not load (it may be blocked by a browser extension). Disable content blockers or email kalle.tolonen@gmail.com.