Git Integration in VS Code

VS Code 550 (1.139 in September 2026; free; the Code - OSS source is MIT-licensed) has Git 1,932 built in and, in its own words, uses the Git installation on your machine for every operation, so it honors your configuration, hooks and signing settings. The Source Control view (Ctrl+Shift+G) lists changes; selecting lines in a diff and choosing Stage Selected Ranges does what git add -p does. The Source Control Graph draws history with branches and incoming or outgoing commits, the three-way merge editor resolves conflicts (and serves as merge.tool vscode, Merge Tools), the Timeline lists a file's commits, and branches, stashes and worktrees have commands of their own. Not run here: VS Code is a desktop application, so this description comes from its documentation (code.visualstudio.com/docs/sourcecontrol/overview (https://code.visualstudio.com/docs/sourcecontrol/overview 550 )).

With WSL2 6 , open the folder through the WSL extension (code . inside Ubuntu 225 ): the Git commands then run in Linux, on Linux paths, with the Linux configuration of Configuration and Aliases, instead of in Git for Windows 47,417 . The Output panel's Git channel logs every command VS Code runs, which is the fastest way to learn what a button does. GitLens 9,933 (github.com/gitkraken/vscode-gitlens (https://github.com/gitkraken/vscode-gitlens 9,933 ), 19.2.0, MIT except its "plus" features) adds blame annotations, a commit graph and history views; its paid tier is part of GitKraken 19,546 's plans (GitKraken).