Open the GitHub origin remote for the current repository in your browser. Optionally insert a base path between owner and repo for enterprise-style URLs.
Features
- One-click open of the
originGitHub remote. - Status bar buttons for quick access.
- Optional base path between owner and repo (example:
owner/basePath/repo).
Requirements
- The workspace folder must be a Git repository.
- The repository must have a configured
originremote. - The
originremote must point to GitHub.
Usage
- Install dependencies:
npm install - Press
F5to launch the Extension Development Host. - Use one of the options below.
Commands
Open GitHub Origin RemoteOpen GitHub Current BranchCompare Branches on GitHubSet GitHub Base Path
Status Bar
$(repo) Open Remote$(git-branch) Open Branch$(git-compare) Compare Branches
Settings
openGithubRemote.basePath(string, default: empty)
Base Path Example
- Default:
https://github.com/owner/repo - With base path:
https://github.com/owner/copilot-corp/repo
Troubleshooting
Unable to read origin remote
- Run
git remote -vto confirmoriginexists. - If missing, set it with:
git remote add origin https://github.com/OWNER/REPO.git
Origin is not a GitHub URL
- Ensure
originis a GitHub URL (SSH or HTTPS).
Development
- Build:
npm run compile - Watch:
npm run watch