Core Git commands and concepts.
Repository (repo)
Project directory tracked by Git.
Commit
Snapshot of staged changes with a message.
Branch
Independent line of development.
main / master
Default primary branch name.
Clone
Copy a remote repository locally.
Pull
Fetch and integrate remote changes.
Push
Upload local commits to a remote.
Merge
Combine histories of two branches.
Rebase
Replay commits onto another base.
Staging area
Where changes are prepared before commit.
Conflict
Overlapping edits Git cannot auto-merge.
HEAD
Pointer to the current commit/branch.
.gitignore
File listing paths Git should not track.
Remote
Named reference to another repository (e.g. origin).