Git is a tool for managing changes in your code.
It's like saving your game before fighting a boss, or clipping in your rope when climbing a mountain.
Repository
The snapshots are stored in a repository, which is cloned and synced to collaborate on code.
Commits
Each save point is a commit. We make commits in branches, which are made from known good save points, like the current live code.
Branching
Commits are made in a branch. When a developer is ready, they can share their branch.
Upstreams
A branch you work on locally is connected to a branch in the hosted repository.
Use git push -u ORIGIN_NAME BRANCH_NAME
to push a new branch and track it.
Patches
When developers make updates to projects, their work is the difference between the previous code and the new version. This is a patch to be applied to the codebase.
Release
When a branch of code has been developed and tested, it is ready for release.