Game dev
Saved & recent

Commit

Related terms: snapshot, revision, staging, commit message, repository

A recorded project revision with a message explaining the change. In Git, a commit identifies a snapshot and its parent commit or commits. It records selected changes, not every unsaved edit in an editor.

Keep related edits together so a revision is understandable and can be checked or reverted. A local commit is not shared until it is pushed. A clear message explains the purpose, such as “Fix jumping after respawn”.

Further reading
Pro Git: Recording Changes to the Repository
working changes Jump.ts Jump.test.ts Shop.scene staged files Jump.ts Jump.test.ts local commit Fix jumpingafter respawn 2 changed files unstaged edit push to share
The jump code and its test are staged and recorded together with a message. The unrelated shop scene remains a working edit. Pushing shares the local commit.

View in the full Game dev collection