Git
Git is a distributed version control system for tracking changes in code.
What Is Git
Git records snapshots of files over time. It lets developers create branches, compare changes, merge work, and return to earlier versions.
It runs locally and can sync with remote repositories.
How To Use Git
Initialize a repository, stage changes, commit them, and push them to a remote host when needed.
Basic Example
git init
git add .
git commit -m "Create first docs"
git status
Common Concepts
- Commits are saved snapshots.
- Branches separate lines of work.
- Merges combine branches.
- Remotes connect local repositories to hosted repositories.
What To Learn Next
Learn branching, pull requests, rebasing, resolving conflicts, tags, stashes, and release workflows.