Using git-ida from the command line
Teams stores your databases in an ordinary Git repository, so you are never locked into IDA's UI to manage them. You can clone, fetch, pull, push, branch, tag, and inspect history with the standard git command line or any Git client.
The one IDA-specific piece is git-ida: a small helper that lets Git store, transfer, and reconstruct packed IDA databases efficiently. This page explains how to make git-ida available to your shell and how to use it directly.
What git-ida is
The git-ida binary ships with IDA and lives under tools/teams/ in your IDA installation (git-ida on Linux/macOS, git-ida.exe on Windows).
Git invokes it as a subcommand: when you type git ida <something>, Git looks for an executable named git-ida on your PATH and runs it. IDA configures it as a Git filter so that, whenever a database is checked out or committed, Git transparently produces a clean, compact representation instead of a raw, opaque blob. That keeps repository size under control. A separate diff driver, also registered by git-ida, is what makes git diff produce a readable comparison. See Diffing IDA databases with git diff for details.
Making git-ida available to your shell
Run this once per machine:
git ida installThis registers git-ida's filter, merge, and diff drivers in your global Git config. After this, any git clone of a git-ida repository, even one made outside IDA, checks out real databases right away, no per-repository setup needed. IDA runs this automatically the first time its Git integration runs, so most users never need to run it by hand.
Run it again inside an existing clone to repair one that checked out databases as small placeholder stubs instead of real files, for example a clone made before git ida install existed on that machine. git ida uninstall removes the global registration.
Check whether it's already set up:
If you instead get an error like 'ida' is not a git command, git ida install is not available on this git-ida version, or not yet on your PATH. Pick one of the two fallbacks below.
Fallback: add tools/teams to your PATH
Point your shell at IDA's tools/teams directory. Adjust the path to match your installation.
Linux / macOS (add to
~/.bashrc,~/.zshrc, …):
Windows (PowerShell, persistent for the current user):
Open a new terminal and run git ida version again to confirm.
Fallback: define a git ida alias
If you would rather not change PATH, register a Git alias that points directly at the bundled binary. Quote the path if it contains spaces.
After this, git ida version, git ida initialize, etc. resolve through the alias regardless of PATH.
What IDA already configured for you
When a repository is created or cloned through IDA, a few local settings are written so that command-line use behaves the same as the in-IDA workflow. Knowing they exist helps when scripting:
filter.* (via .gitattributes)
The git-ida clean/smudge filter that compacts and reconstructs databases on commit/checkout.
pull.rebase = false
Makes a manual git pull use a merge (the same model IDA's Pull uses), so CLI and UI pulls behave consistently.
ida.path
Absolute path to the IDA executable, so git-ida can launch IDA when a diff or merge is required.
credential.helper
For HTTPS remotes, lets Git authenticate without re-prompting (credentials are stored by IDA in the OS keychain).
These are stored in the repository's local config (.git/config), so they travel with that working copy and do not affect your other repos.
Everyday command-line operations
Once git-ida is available, the usual Git commands work as expected:
Because the repository is a standard Git repository, third-party Git GUIs, IDE integrations, CI pipelines, and your provider's web UI all work too.
Switching branches
Switching to another branch checks out a different set of databases. Git does not always re-run the git-ida smudge filter on files it considers unchanged, so the databases in your working copy may not be fully reconstructed after a plain git switch / git checkout.
To be safe, force Git to re-materialize every file through the filter by resetting hard to the branch tip right after switching:
This is exactly what IDA does internally after cloning a repository, and it guarantees every database on the branch is correctly rebuilt.
git ida initialize
Unlike git ida install above, which is a one-time, per-machine setup, git ida initialize configures one specific repository: it registers the git-ida filter, writes the .gitattributes and .gitignore entries IDA relies on, and sets up the merge driver.
For example:
Useful flags:
--lfs
Track databases with Git LFS (recommended when databases exceed your server's file-size limit). Requires git-lfs to be installed.
--override
Re-apply the IDA configuration even if some of it is already present. Handy for repairing a repository whose .gitattributes/filter config got out of sync.
After running it, you can inspect what was set up:
Quick reference
Last updated
Was this helpful?
