Git Extras: Checkout File from Default Branch
(git-extras.checkout-file-from-default-branch) - Reset the current file to its version on the
default branch
Git Extras: Copy Remote URL (git-extras.copy-remote-url) - Copy a remote (e.g. GitHub) URL
for the current file and line/selection. With no file open, copies the repository URL.
Git Extras: Open Blame (git-extras.open-blame) - Open the remote blame view for the current
file and line.
Configuration
GitHub is supported out of the box. To add support for other Git hosts, set git-extras.remotes in
your VS Code settings:
Templates support ${1}, ${2}, ... for regex capture groups and ${sha}, ${file}, ${line}
for file/blame URLs. URLs always reference the current commit SHA so the links remain stable as
branches move.
Installation
From VSIX file
Download the .vsix file
Install via Command Palette: "Extensions: Install from VSIX..."
Or use CLI: code --install-extension git-extras-0.0.1.vsix