Git maintains three conceptual "trees" - the repo, staging index, and working directory - that track changes to code on a local machine. The repo contains committed changes, the staging index stages changes for commits, and the working directory contains unstaged changes. Basic Git commands like git add move changes from working directory to staging index, git commit moves them to the repo, and git push shares commits with remote servers.