Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Git Commit

Ordinary Commit

git commit -m "Here is what I did"

Amend - Change the Last Commit Message

Warning

Do not amend commits that have already been published.

git commit --amend -m "This is what I wished it said"

All

  • Automatically stages all files known to the Index
  • Does not add new files
git commit --all -m "Used when you don't want to manually add files

References

Git - git-commit Documentation

Last Modified • Sunday, June 14, 2026. 5:02 pm UTC+00:00 • Commit: 3aedc3f