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 • Saturday, June 27, 2026. 11:45 pm UTC+00:00 • Commit: 4314778