Skip to content

Features

The graph filtered to one folder, with the matching commits

  • A graph you can read: branches, tags, stashes and remote branches, with authors’ pictures. Hide any of them, follow only the active branch, jump to HEAD, or show the reflog.
  • Search that understands Git: words, or filters such as author:ada, path:src/app.ts, since:2024-01-01, until:2024-06-30, content:text (commits that add or remove that text) and regex:pattern.
  • Background fetch: every open repository is fetched on a timer, so the graph shows what others pushed. It waits while a merge or rebase is under way, and it never asks for a password.
  • History tools: file, folder and hunk history, cherry-pick, revert, reset, patches, archives of any commit, and bisect.

A diff with two lines selected and the Stage and Discard buttons

  • Files, hunks or single lines: stage, unstage or discard a whole file, one hunk, or only the lines you select in the diff. Drag over them, or click line numbers, then press S to stage or U to unstage the selection. Selected lines can be stashed too, and part of a new file can be staged.
  • Fixup and squash: stage some changes, right-click an earlier commit on the checked-out branch and choose Fixup into This Commit… to fold them into it, keeping its message, author and date. Squash into Parent… melts a commit into the one before it under a message you edit. Both replay the later commits, and warn when a remote branch already has the commit.
  • Split a commit: right-click a commit on the checked-out branch and choose Split Commit…. The rebase stops at it with its changes unstaged, so you can stage parts (whole files, hunks or single lines), commit them one by one, and continue the rebase.
  • Branch from a stash: right-click a stash in the graph and choose Create Branch from Stash… to start a branch at the commit the stash was made on, with the stash applied and dropped.
  • Compare a commit with something else: right-click a commit and choose Compare with HEAD, Compare with Merge Base, Compare with Upstream (for a branch with an upstream), or Compare with… to pick a branch or tag. The changed files open in the Commit tab, as if the two commits were selected together.
  • Fast on large repositories: in a repository with over 100 MB of objects and no commit-graph file with changed paths, Git Checkout writes one in the background, once per session. It is the file git gc writes, and it makes the graph, file history and blame several times faster. Turn it off with gitCheckout.git.writeCommitGraph.
  • Hide branches from the graph: right-click a commit and choose Branch, then Hide Branch, to leave a branch, and the commits only it reaches, out of the graph. Show Hidden Branches… in the panel’s menu brings them back. When a commit has several branches, you pick which one.
  • Explain a commit: right-click a commit in the graph and choose Explain Commit with AI. A language model that VS Code provides, such as GitHub Copilot’s, reads the message and the changes (a merge against its first parent) and opens a short Markdown explanation beside the graph.
  • AI features, on your terms: commit messages, conflict resolution, pull request descriptions, commit explanations and staged-change reviews all use a language model that VS Code provides, and nothing is sent until you press one of their buttons. Turn them all off, and hide their buttons, with gitCheckout.ai.enabled. With gitCheckout.ai.reviewConflictResolutions on, each conflict resolution opens as a diff against the conflicted file and waits for you to accept it before it is written and staged.
  • Commit, amend, commit and push: one box for the message, with a hint when the subject runs long.
  • Edit any commit’s message: right-click a commit and choose Edit Commit Message…. The commits after it are replayed with the same changes, authors and dates, and local changes are kept. It warns when a remote branch already has the commit.
  • Diffs that open like files: each change opens in a tab, with options for whitespace, wrapping, context, full file and side by side in the tab’s title bar.

Blame at the end of the cursor line, with its hover card: the author picture, the message and actions

  • Inline and status bar blame: who last changed the line you are on, in faint text at its end and in the status bar. Hover it for the commit message with its issues and pull requests linked, the author’s picture, and quick actions: show the commit in the graph, copy its hash, open the change, see the line’s history, or open it on GitHub.
  • File blame and CodeLens: toggle a column that shows who changed each run of lines, tinted from warm for recent to cool for old. Optional CodeLens above a file, class or function says who changed it last.

File blame in the gutter, and the CodeLens above the file

  • Step back in time: blame a line as it was before the change that last touched it. Commits listed in .git-blame-ignore-revs, such as a mass reformat, are skipped, as on GitHub.
  • Issue trackers: gitCheckout.autolinks links JIRA-123 style references in messages. The names match GitLens’s, so those entries can be copied.
  • A whole file’s story: open the Blame view of a file from the File Tree, or its history (renames followed), from the right-click menu.

The history of a file, with the diff of each commit

  • A section in the sidebar: for a repository on GitHub, Pull Requests groups your pull requests, and the ones you are asked to review, by what each needs next: Ready to merge, Blocked (conflicts or failed checks), Requires follow-up (changes requested), Needs your review, Waiting for review and Draft. All open lists every open pull request, with a badge for how their checks stand. Pull requests that build on one another (each one’s target is the branch of the one below) show as a stack: the bottom pull request stays where it is listed, and the ones on top of it are its children, each with its place in the stack (2 of 3) and not listed on their own; it finds them from their branches, so a stack shows whether or not GitHub grouped it. Right-click the bottom pull request and choose Check Out Stack Layer… to pick a layer to check out. Go Up the Stack, Go Down the Stack, Go to Top of Stack and Go to Bottom of Stack (in Quick Launch, Ctrl+Alt+G, Q in the Git Checkout tab) move from the checked-out branch to a neighboring layer; a layer you have no branch for is fetched as pr/<number>. Push Stack… (right-click the bottom pull request) pushes the stack’s local branches in one atomic push, with a lease so that branches rebased since they were pushed are replaced unless someone else pushed to them. Rebase Stack… moves each branch onto the one below it, the first onto the base branch (after an optional fetch): layers that are on their parent already stay, a layer whose parent was amended does not bring the parent’s old commits along, and a bottom layer built on a parent that was squash-merged moves only its own commits while the parent’s branch is still here. A conflict stops the rebase like any other; once it is resolved and continued, run Rebase Stack… again to carry on with the layers above. Sync Stack… does the routine round in one go: fetch, rebase, push the branches, and make the stack on GitHub match the chain of pull requests (a new stack, or the missing pull requests added on top of the stack that has the first ones; a stack that disagrees is left alone and you are told). Merge Stack… merges the stack through the pull request you pick (that one and every one below it, all or none) with the method you choose, through GitHub’s merge for stacks: the form waits while it runs in the background, says if the stack was put in the merge queue, and stays open with GitHub’s reason if it could not merge. A draft in the set is refused before GitHub is asked. Unstack… ends the stack on GitHub and nothing else: the pull requests and the branches stay.
  • Check one out: right-click a pull request to check it out (as the branch pr/<number>, through the same checkout as any branch), check it out in a worktree, review what it changes against its target branch, open it on GitHub, or copy its link.
  • Start one with a written description: right-click a local branch and choose Open Pull Request with AI Description…. A language model that VS Code provides, such as GitHub Copilot’s, writes the title and description from the branch’s commits and changes, and GitHub’s new pull request page opens with them filled in. Without a model, the page opens as it does without AI.
  • Make a stack of pull requests from one branch: right-click a local branch (in the sidebar or the graph) and choose Create Pull Request Stack…. The form lists the branch’s commits, newest first. Tick the commits that end a pull request; the commits between two of them join the upper one, and the newest always ends the top pull request. Each one gets a branch name and a title you can edit. Create Stack makes the new branches at those commits (nothing is rewritten), pushes them together, opens the pull requests from the bottom up, each against the one below, and groups them as a stack on GitHub. If GitHub does not offer stacks for the repository, the pull requests are still made and chained by their targets, and you are told why they are not grouped. A branch with a merge commit, or with more than 50 commits, cannot be cut this way.
  • Quiet by default: it uses your GitHub sign-in in VS Code, asks only for what a public repository needs and asks again for private ones, and can be turned off with gitCheckout.pullRequests.enabled.
  • Open on GitHub: right-click a file for Open File on GitHub and Copy GitHub Link to File (to the selected lines), or a commit in the graph for Open Commit on GitHub. In the sidebar, Open Remote in Browser works for SSH and HTTPS remotes alike, and for hosts other than GitHub.

Branches, tags, stashes, worktrees and submodules

Section titled “Branches, tags, stashes, worktrees and submodules”
  • Filter branches: the filter button of the sidebar (or Filter Branches… on the Branches section) shows Yours (branches with commits of yours that the default branch lacks, found by your user.email), Active or Stale (changed within, or not for, three months). The sidebar and the graph list the same branches; the checked-out one always stays.
  • Branches, tags and remotes: create, check out, rename, delete, merge, rebase, fast-forward, compare, and set upstreams.
  • Stashes: save, apply, pop and drop.
  • Worktrees: add, open and delete, or check a branch or pull request out into one.
  • Submodules: add, initialize, update and sync.
  • Fetch, pull and push: a form for the options, or Quick Fetch, Quick Pull and Quick Push for the tracked remote.

The Merge modal on a conflict, with the incoming and current sides and the result

  • Interactive rebase: reorder, squash, fix up, reword and drop commits.
  • A real merge view: a conflicted file in the Changes list opens a Merge modal that shows the incoming and current sides next to the result. Take a side, the other or both for each conflict, or for all of them, or single lines by their numbers, or type the result. The same file also opens in VS Code’s merge editor.

A file tree at a commit with a picture previewed

  • File Tree: browse the repository as it was at the selected commit, and preview any file, pictures included.
  • Image diffs: the old and the new picture, side by side.
  • Quick Launch: one list of every repository action, plus your own commands. Press Ctrl+Alt+Shift+K (Cmd+Alt+Shift+K) or Ctrl+Alt+G, Q.

Quick Launch over the graph

  • Housekeeping: prune stale remote-tracking branches, delete merged branches, clean untracked files, sparse checkout, garbage collection, and repository statistics, from Quick Launch.
  • Git Flow and commit signing.
  • External diff and merge tools, off until you turn them on.
  • Keyboard shortcuts for every common action, which you can turn off or rebind.
  • Your own commands in Quick Launch, with placeholders for the branch, file, URL and more.
  • Works anywhere your folder is: Git Checkout runs on the workspace side, so Git always runs on the same machine as your folder: local, WSL, SSH, Dev Containers or Codespaces.