Browsing code

The file tree, syntax-highlighted viewer, branches, and commit history.

The code view (G C from anywhere in a repository) is for reading: a fast tree, a highlighted viewer, and history.

The file tree

The repository page opens on the default branch's tree. Directories expand in place, files open in a syntax-highlighted viewer, and large repositories load lazily so the first paint never waits for the whole tree.

Switching branches

The branch picker swaps the entire view to another ref, and the ref is part of the URL, so a link to a file on a branch keeps pointing at that branch. Tags work the same way.

Commit history

The commits view (G H) walks history from the tip of the selected branch: author, message, and time for each commit. Use it to answer "what landed here recently" without leaving the browser; for anything heavier, you have a full clone, because the repository is just git.