Git Checkout

Now for VS Code 1.90 and newer

The Git client
that lives in VS Code

See your history as a graph, stage the exact lines you mean, resolve merge conflicts side by side and rewrite history, all in the editor you already use.

Install Git Checkout Read the docs

The commit graph in the main area, with the files of the selected commit in the sidebar

Native to VS Code

It takes your theme, your fonts and your keys. Nothing in it looks or behaves like a guest.

Where your code is

It runs next to your folder, so it works the same on your machine, over SSH, in WSL, in Dev Containers and in Codespaces.

Quiet by default

No telemetry, and background fetch never asks for a password. It only talks to your own remotes.

History

See every branch at once

A commit graph with branches, tags and stashes. Search by author, path, date, or by the text a commit added or removed, and a background fetch keeps it current.

Searching the graph for the commits that touch a path
Searching the graph for the commits that touch a path
The files a commit changed in the sidebar, and the diff of one of them as a tab
The files a commit changed in the sidebar, and the diff of one of them as a tab

Changes

Stage exactly what you mean

Stage a file, a hunk, or only the lines you select, on either side of a side-by-side diff. Commit, amend, or commit and push from the same place, and edit the message of an older commit when you need to.

Two selected lines of a diff with Stage and Discard Changes buttons beside them
Two selected lines of a diff with Stage and Discard Changes buttons beside them

Blame

Know who changed every line

Who last changed the line you are on, at its end and in the status bar, with a hover that shows the author, the message with its issues and pull requests linked, and quick actions. Turn on a column for the whole file, and CodeLens above its functions.

Blame at the end of the cursor line, and its hover card with the author’s picture and actions
Blame at the end of the cursor line, and its hover card with the author’s picture and actions
Blame for every line of a file in the gutter, tinted by age, and CodeLens above the code
Blame for every line of a file in the gutter, tinted by age, and CodeLens above the code

GitHub

Pull requests, without leaving the editor

For a repository on GitHub, the sidebar lists the open pull requests as the ones you made, the ones waiting for your review and all the others, with how their checks stand. Check one out, or review what it changes, in a click.

Merging

Resolve conflicts side by side

Take the incoming side, the current side or both, for a conflict, a line or the whole file. The result below is an editor you can type in, and everything scrolls together.

The Merge modal with the incoming side, the current side and the result below
The Merge modal with the incoming side, the current side and the result below

Rewriting history

Reorder, squash, reword and drop

An interactive rebase you can see. Drag commits into order, preview each one and run it when the plan looks right.

The interactive rebase editor with the commits to rebase
The interactive rebase editor with the commits to rebase

Archaeology

Who changed this, and why

The history of a file, a folder or a single hunk, and a blame view that shows who last changed each line of a commit’s change.

The history of one file with the diff of each commit
The history of one file with the diff of each commit
A commit’s change with who last changed each line beside it
A commit’s change with who last changed each line beside it

Speed

Every action, one keystroke away

Quick Launch lists every repository action and your own commands. Common actions have keys you can turn off or rebind.

Quick Launch listing repository actions
Quick Launch listing repository actions

Files

Browse and compare, pictures included

Walk the tree of any commit, preview its pictures, and compare two versions of an image side by side.

The File Tree section of the sidebar, with the folders of a commit
The File Tree section of the sidebar, with the folders of a commit
A picture picked in the File Tree, previewed as a tab
A picture picked in the File Tree, previewed as a tab
Two versions of an image compared
Two versions of an image compared

And the rest of Git

Questions

Does it replace the built-in Git extension?

No. It uses it for credentials and for the Git path, so what you set up for VS Code keeps working.

Which versions of VS Code does it need?

VS Code 1.90 or newer, with the built-in Git extension turned on, and Git installed on the machine that holds your folder.

Does it work over SSH, in WSL and in containers?

Yes. Git Checkout is a workspace extension, so Git runs on the same machine as your folder.

Does it collect telemetry?

No. For a repository on GitHub it asks github.com which account made a commit, once per author, to show a picture. You can turn that off.

Can I change the keyboard shortcuts?

Yes. Turn them all off with one setting, or rebind any of them in VS Code’s Keyboard Shortcuts editor.

Open the graph in VS Code

Install Git Checkout View on GitHub