Git · Snapshot and staging

git commit --all

Stages tracked changes and commits them in one step. New files still need git add.

Syntax
git commit --all -m "message"

Example

Example
git commit --all -m "chore: update copy"

More in this group

git add --all git add --patch git checkout -- (discard) git clean -n git commit --allow-empty git commit --fixup git notes git restore --staged

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course