Skip to main content

Team Sync

What Team Sync is​

Team Sync is a Pro (Professional) feature. It saves your shared collections, environments, Conduits and Conduit folders as JSON files in a git repository. Each teammate connects Nidra to their own local clone of the same repository.

Saving an edit changes your local files. Publishing commits and pushes changes to the remote repository, where your team can review them in a pull request. Team Sync traffic goes to your git host; your shared data does not pass through a GlacierLens server.

Nidra uses git for cloning, pulling and pushing. Its built-in pull request integration supports GitHub and Azure DevOps. Other git remotes do not have that built-in PR integration.

Before you start​

You need:

  • An active Pro license or Professional trial.
  • Git installed and available to Nidra.
  • A repository URL and permission to push to that repository, with git authentication configured on your machine.
  • A local folder for your clone, or an existing git clone.
  • For built-in pull requests, the GitHub CLI (gh) for GitHub, or Azure CLI (az) with Azure DevOps commands available, authenticated for your repository.

Connect​

  1. Open Settings → Team Sync and select Enable Git Sync.
  2. Enter Repository URL. If you use an existing clone, Nidra can use its origin URL.
  3. Set Local Path, or use Browse for folder. Choose an empty folder for cloning or an existing git repository. A non-empty folder without a git repository is refused.
  4. Set Branch to the default branch you want to sync with, such as main.
  5. Enter Your Name and Your Email for the author information on git commits.
  6. Click Use existing folder or clone.

Nidra clones the repository or uses the existing clone, then loads its data. If an existing folder's origin differs from the URL you entered, Nidra asks whether to Use folder with that origin.

Connecting replaces the currently loaded shared data with the repository's contents; it does not automatically publish your existing local data. Back up anything you need before switching. Nidra asks you to discard unsaved team request changes when necessary.

Personal collections stay in your machine's workspace data, outside the shared sync folder, and are never synced.

The Sync tab​

Once connected, the Sync icon appears in the sidebar. An amber dot indicates pending changes. A separate PR status dot indicates an open or merged pull request for the current branch.

The changed-items tree groups files under Collections, Conduits, Environments and Other changes. Badges show A for added, M for modified and D for deleted items. Select the files you want to publish.

Select a file or a changed request to inspect its diff. Split shows the versions side by side; Unified shows an inline diff. When a request is selected, use This request or Full file to change the scope.

To discard just one request's edits, hover over its row and use Discard this request's changes, then confirm Discard. This reverts that request's changes. Discard this file affects the whole file, so check which action you choose.

Publishing and pull requests​

  1. Select the changed files and click Publish … File(s). The button includes the selected file count.
  2. Review the diffs, then click Next: Write Message.
  3. Enter a Commit Message. For a new pull request, also enter Pull Request Title and, optionally, Pull Request Description.
  4. Click Create Pull Request. Nidra creates a new branch, commits and pushes your selected changes, and opens a pull request against the configured base branch.

If the current branch already has an open PR, publishing uses Update Pull Request and pushes to that branch. The existing PR receives the new commits.

On a branch other than the main branch, with no open PR, Quick Push lets you publish directly to the current branch using Push Changes. For an already-published feature branch without a PR, the Sync footer offers Create PR when eligible.

Use the branch selector to switch branches. The PR badge links to the pull request on your git host and shows its status. Review and merge there. After a merge, Nidra offers to switch back to the configured base branch.

The single Refresh git & PR status button refreshes both git and pull request status. Toggle commit history shows recent commits inside Sync, including their hash, message, author and date.

Pulling teammates' changes​

Switch to the branch containing the changes you want and refresh its status. When your branch is behind the remote, ↓ Pull appears. Pulling updates the local clone and reloads its data into Nidra.

After a teammate's PR merges, switch to the base branch and pull to load the merged changes. Refreshing status alone does not import remote changes.

Resolving conflicts​

If git reports conflicts, open Resolve Conflicts. The resolver lists conflicted files on the left and shows local and incoming content side by side. Select each file and choose a resolution:

  • Keep Local (Ours) keeps your side.
  • Keep Remote (Theirs) keeps the incoming side.
  • Keep Both concatenates the two versions; it does not intelligently merge JSON. Check the resulting file carefully.

For a file deleted remotely, the choices are Keep File (Local) and Delete File (Remote). Resolve every file before choosing Complete Merge. Abort Merge cancels the merge and discards the resolutions after confirmation.

A branch switch can temporarily stash local edits and then reapply them. If that causes conflicts, the resolver uses Keep Mine (Stashed) and Keep Pulled Changes, followed by Complete (Drop Stash). Abort & Discard Stash discards those local edits after confirmation.

Secrets in a shared repo​

Environment values marked Encrypted are stored encrypted with AES-256 and are safe to commit to the shared repository. Teammates need the secrets password for that repository to unlock them.

Open the title-bar lock menu, find the TEAM entry and select Unlock…. Enter the repository's secrets password and click Unlock. Remember on this machine is available where supported. Nidra can also prompt to unlock when sending a request that needs an encrypted value. The password itself is not synced; share it separately with teammates who need access.

Azure Key Vault values such as {{kv:secret-name}} store only the reference in the shared files. The secret value is retrieved from your vault, so teammates need their own access to that vault.

Editing files outside Nidra​

The sync folder is the source of truth. You can edit its JSON files in a text editor or use git outside Nidra. The file watcher updates Sync status when files change. Use Load from Disk to reload the folder's contents into Nidra; this does not need a network connection. Nidra also shows a notice when the sync folder has files newer than its last import.

Disconnecting​

Open Settings → Team Sync, click Disconnect, and confirm Disconnect Git Sync?. Nidra then asks Clear synced data?: choose Keep data to retain the currently loaded data or Clear data for a clean slate. The local repository folder is not deleted.

Troubleshooting​

  • Connection or authentication fails: check the repository URL, local folder, installed git and your git host credentials. Your commit name and email identify the author; they do not authenticate you with the host.
  • Pull request creation or status fails: check that the appropriate host CLI is available and authenticated. Built-in PR operations support GitHub and Azure DevOps.
  • Push fails: read the reported git error and check your remote access. A failed push can leave a local commit; when the branch is ahead, ↑ Push lets you retry. If the remote has advanced, pull and resolve conflicts before retrying.
  • Teammates' changes are missing: check the selected branch, refresh status and pull if it is behind. For files already changed on disk, use Load from Disk.
  • Newer repository format: if Nidra says, “This sync repo uses a newer Nidra data format. Update Nidra to continue,” update Nidra before editing that repository.

Next Steps​