Tools

Git

Git is a version control system. It records snapshots of your project so you can review history, work in parallel, and undo mistakes.

The basic loop

git add .
git commit -m "Describe the change"
git push

Branches

A branch is an independent line of work. You merge it back when it's ready.

git checkout -b feature
# ...make changes...
git checkout main
git merge feature

Remotes

A remote is a copy of the repository hosted elsewhere (like a server). push sends commits to it; pull brings new ones down.