Skip to content
| Marketplace
Sign in
Visual Studio Code>SCM Providers>Repo Manager by SachilaNew to Visual Studio Code? Get it now.
Repo Manager by Sachila

Repo Manager by Sachila

Sachila ranawaka

|
1 install
| (0) | Free
Check out branches, review changes, and commit or push across workspace repositories.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Repo Manager by Sachila

Check out a common branch, review changes, and commit or push across selected Git repositories in your current VS Code window.

Preview locally

  1. Use Node.js 22 or newer for development. Run npm install and npm test.
  2. Open this project in VS Code and press F5 (Preview Repo Manager).
  3. In the Extension Development Host, open a Git repository and use File → Add Folder to Workspace… to add more repositories.
  4. Click the Repo Manager activity bar icon, or run Repo Manager: Open Repo Manager from the Command Palette.
  5. Choose Checkout to branch in the navigation sidebar. In the editor page, select repositories, enter a branch name, and click Checkout branch. Use the star beside a repository to pin it as a favorite at the top. Favorites are remembered per workspace. Click Open terminal to open a terminal in each selected repository’s folder; no branch name is required.
  6. Choose Commit and/or push to review diffs, select files, and use one message across repositories.

For an isolated preview with three disposable repositories, run npm run preview. Run npm run preview:vsix to package, install and launch the VSIX in a separate temporary profile. Accept workspace trust only for this generated preview workspace. These commands leave your regular VS Code extensions and repositories alone.

You can also run npm run package, then use Extensions: Install from VSIX… to install version/repo-manager-0.2.5.vsix. The Marketplace publisher ID is Sachilaranawaka.

How it works

The extension discovers repositories through VS Code’s built-in Git integration. For each selected repository, an existing local branch uses git checkout <branch name>. A missing local branch uses git checkout -b <branch name>, starting from that repository’s current HEAD. A selection can contain both cases. No fetch, pull, push, or remote branch creation occurs.

All selected repositories are validated before changes begin. Invalid names, branch path conflicts, unresolved conflicts, in-progress Git operations, and repositories without commits block the operation.

Stash and re-apply is enabled by default. Tracked and untracked changes are stashed, then restored on the target branch with staged state preserved. Ignored files remain in place. Only the exact stash created by the operation is removed after successful restoration; existing stashes are preserved.

If you disable this checkbox, you must confirm permanent removal of staged and unstaged tracked changes in the listed repositories. This includes newly staged files. Untracked and ignored files are preserved.

Repositories are processed sequentially. On failure, processing stops and remaining repositories are skipped. Successful repositories stay on their target branches. If checkout fails, the extension attempts to restore changes on the original branch. If stash application conflicts, the stash is retained and recovery details appear in the editor page. Inspect and resolve the repository before applying or dropping the recovery stash; do not blindly re-apply a partially applied stash.

Commit and/or push

The sidebar contains navigation only; both workflows open reusable main editor tabs. Expand a repository to view changed files grouped into expandable folders and click a filename to compare Original (HEAD) and Current (working tree) side by side inside the same page. The comparison opens on the right, with aligned lines and highlighted additions and deletions; at narrow widths it appears below the controls. It is read-only, and closing it preserves selections and the commit message. Refresh or repository changes clear outdated comparisons. Binary files display an inline explanation instead of a text comparison. Selections start empty and persist when switching tabs.

Use repository or folder checkboxes to select all eligible changed files beneath them, or select individual files. Parent checkboxes show a partial selection when only some files are selected. Unsupported files stay visible but cannot be selected. Select whole files, enter a shared commit message, then choose Commit or Commit & Push. Each selected repository receives its own commit with that message. Selected files include all current edits, even when partially staged; unselected staged and unstaged changes are preserved using a temporary Git index. Git hooks run normally and their changes are not discarded. Inspect results if hooks fail or alter the commit. Conflicts and submodule changes cannot be selected.

Push only targets repositories with at least one selected file, without requiring a message. It pushes existing commits rather than committing the selected edits. Push actions require a named branch with an existing upstream; configure one using Git or VS Code first. They never force push, pull, or create an upstream. Commit & Push checks upstreams before any commits begin. Repositories run sequentially and stop on the first failure. A successful commit remains local if pushing fails.

All targets are validated before work starts. If repository contents, staging, or branches change after review, refresh and review the selection again. Avoid concurrent Git operations while running a workflow. Network and authentication failures are reported; commands have a two-minute timeout. Configure authentication outside this page.

development-pull

Open Checkout to branch from Repo Manager navigation. The page lists every discovered repository in the current VS Code workspace, including clean repositories. Select repositories and click Checkout to development & Pull.

Stash and re-apply is checked by default and preserves tracked and untracked edits, including staged state. After fetching origin/development, the workflow checks out local development (creating a tracking branch if missing), fast-forwards to the fetched commit, and reapplies the exact operation stash. Ignored files remain in place. Existing local development commits must be ancestors of the remote commit; divergence or local commits ahead of origin block the operation.

Unchecking stash requires confirmation before discarding staged and unstaged tracked edits. Untracked and ignored files are preserved and may block checkout if they collide with development files.

All selected repositories are validated and fetched before any working files change. Missing remotes/branches, conflicts, active Git operations, or development checked out in another worktree block the batch. Fetch can update remote-tracking refs even if the batch stops. Repositories then run sequentially and stop on the first failure. Successful updates remain in place. Restoration conflicts retain the recovery stash; review the reported branch and stash before attempting recovery. Network commands use a two-minute timeout and require authentication configured outside the tab.

Requirements and limitations

  • Desktop VS Code 1.90 or newer, with Git installed and built-in Git integration enabled.
  • A trusted workspace containing one or more repositories with commits.
  • Remote SSH, WSL, and containers run Git on the remote extension host.
  • Separate VS Code windows, virtual repositories, and browser-only VS Code are not supported.
  • Multi-repository changes are not atomic. Concurrent Git operations can still cause failures after validation. Avoid editing repositories or running other Git operations during execution.
  • Git hooks and local Git configuration can affect checkout and restoration.

Development

  • npm run compile: compile TypeScript.
  • npm run watch: compile continuously.
  • npm test: integration tests against disposable local Git repositories.
  • npm run package: build an installable VSIX in version/, keeping earlier versions.

See PREVIEW.md for the preview checklist and PUBLISHING.md for release steps in the source project.

MIT license.

Both pages include a case-insensitive repository-name search. Search only filters the visible list; selected repositories and files remain selected, and Select all still applies to the full list. Each page remembers its search when switching tabs.

Pull development on Checkout to branch merges the fetched origin/development into each selected repository’s current named branch without switching branches. Divergent branches receive a merge commit; conflicts stop the batch. It shares the stash checkbox and tracked-change discard confirmation. If a merge conflicts, local edits remain in the reported recovery stash until the merge is resolved or aborted; do not apply the stash over an unresolved merge.

Commands

Open Commands from Repo Manager navigation (or Repo Manager: Commands in the Command Palette). Expand a repository to see scripts from its root package.json, select one or more scripts across repositories, and click Run command at the bottom. Each script runs with npm run in a separate VS Code terminal using its repository as the working directory. npm must be available on your PATH. Refresh reloads scripts after editing package files.

When a repository has .nvmrc, each command terminal runs nvm use first. If that fails, it runs nvm i followed by nvm use. The npm script runs only after successful Node setup. On macOS/Linux, the terminal loads nvm from $NVM_DIR/nvm.sh (default ~/.nvm/nvm.sh) when needed.

In Commands, use a repository checkbox to select or clear all its scripts; a partial check indicates some scripts are selected. Search by repository or script name. Clear deselects every command, including commands hidden by the current search.

Mark a command with ☆ to add it to the flat Favorites list above repositories. Favorites show their repository label and use the same selection as their repository entry, so you can run favorites together with other commands without duplicates. Favorites are saved for this workspace; Clear clears selections while keeping favorites.

Commit and/or push lists repositories with changes first, followed by selectable repositories labeled No local changes. Clean repositories skip the commit step; Commit & Push and Push only can still push their existing commits. Discard changes discards selected staged/unstaged edits and deletes selected untracked files after confirmation, preserving unselected files.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft