Pull, push and settle collection conflicts from VS Code and JetBrains

If your collections live in Git, the IDE is where you notice they're out of date: the backend changed an endpoint in a merge request, and the request in your sidebar still has the old body. The Requestarium extension for VS Code and the JetBrains plugin can pull that change, push yours, and settle a conflict without switching to the app.

The Sync tab

Right-click a linked collection ▸ Sync (Git / bucket)…. The tab shows:

  • where it's synced (provider, repository, branch, folder), when and by whom it was last synced, and the branch's last commit;
  • what a pull would change in the collection and what a push would change in the repository;
  • what reviewers will read ("1 request added, 1 changed"), with Copy change summary;
  • Pull and Push with a commit message, once the two sides merge without conflicts.

A push applies incoming changes first, then commits the merged result. If the branch moved after the comparison, the push is refused and the tab compares again, so you never overwrite a teammate's commit.

One thing to know: unsaved edits in open request tabs aren't part of a push. Save first; the stored collection is what gets compared.

Branches

For a Git link the tab shows the current branch and a Branches… button. Each other branch has:

  • Switch: the collection moves to that branch and is pulled to it. If you have edits that were never pushed, you choose Keep my edits (they come along) or Discard them.
  • Compare: what that branch adds, changes and deletes, field by field, and a link to the provider's compare page.

New branch from main… creates a branch at the latest commit and switches to it. That's the natural way to work on the collection for a feature branch of the API. Creating and comparing branches is part of Team and Enterprise; switching works on every plan. More in Git branches for API collections.

Conflicts, one field at a time

A conflict is a field changed on both sides since the last sync: the same request's URL edited in the IDE and in a merge request, say. The tab groups conflicts by request, folder or environment and asks for one choice each:

  • Mine: the stored value;
  • Repository (or Bucket): the other side's value;
  • Merged value: typed by hand, starting from yours.

Keep all mine and Take all from the repository fill in everything at once. Apply choices compares again with your choices, then Pull or Push carries them out. Fields changed on one side only are merged for you. See Resolve API collection merge conflicts for how the merge works.

Secret variables are written to the repository as names only, the same as everywhere else.

The Sync overview and the status bar

Once the workspace has a linked collection, a ⇅ button appears next to the workspace picker: red dot when something needs attention, amber when there are only commits to pull. It opens the Sync overview, the same list as Settings ▸ Sync in the app, worst first:

  • state, last sync, open conflicts and any waiting pull request;
  • the scheduled check and its last error;
  • Check now, Retry the check, and buttons that jump to the collection's Sync tab.

VS Code also shows Sync, Sync: 2 need attention or Sync: 1 to pull in the status bar; JetBrains has the same text in a Requestarium Sync widget. They refresh every five minutes and after every pull or push.

What stays in the app

Linking and unlinking a collection, choosing a bot, webhooks, the schedule, push via pull request, sync history and restoring a version are done in the web or desktop app's Git sync dialog. The IDE covers the everyday part: seeing what changed, pulling, pushing and settling conflicts.