Branches and commits are both fundamental to git — but they're not the same thing. Here's the difference.
A commit is a snapshot of your code at a specific moment. It has a unique hash, a message, and points to its parent commit(s). Commits are permanent records.