Troubleshooting

Start here when gig cannot infer repo, branches, auth, or config.

Provider Login Fails

Run:

gig login

If the error says a CLI is missing, install the provider CLI shown in the message:

  • GitHub: gh
  • GitLab: glab
  • Azure DevOps: az
  • SVN: svn

Then reopen the terminal and rerun gig login.

Read-only commands do not start interactive login. If gig ABC-123 or gig ABC-123 --repo github:owner/name cannot access the provider, it prints the exact login command to run, for example:

gig login github

Then rerun the original command.

To check tools before running an audit:

gig setup --provider github

To let gig run the install command, opt in explicitly:

gig setup --provider github --install-missing

gig asks for confirmation unless --yes is also present.

Common install commands:

Tool macOS Windows Linux examples
git brew install git winget install --id Git.Git sudo apt install git, sudo dnf install git, sudo pacman -S git
gh brew install gh winget install --id GitHub.cli sudo apt install gh, sudo dnf install gh, sudo pacman -S github-cli
glab brew install glab winget install --id GitLab.cli sudo apt install glab, sudo dnf install glab, sudo pacman -S glab
az brew install azure-cli winget install --id Microsoft.AzureCLI sudo apt install azure-cli, sudo dnf install azure-cli, sudo pacman -S azure-cli
svn brew install subversion winget install --id Apache.Subversion sudo apt install subversion, sudo dnf install subversion, sudo pacman -S subversion

Repo Target Is Unknown

Inside the prompt, use the shortest input first:

repo
repo payments
gh owner/name

You can also paste a normal provider URL or Git remote. For scripts, use a full target:

gig ABC-123 --repo github:owner/name

Target forms:

  • github:owner/name
  • gitlab:group/project
  • bitbucket:workspace/repo
  • azure-devops:org/project/repo
  • svn:https://svn.example.com/repos/app/branches/staging/ProductName

Branch Topology Is Ambiguous

gig should not guess when branch order is unclear.

Use explicit branches:

gig verify ABC-123 --repo github:owner/name --from staging --to main

If this is the normal path, save it:

gig
# ask gig > repo payments
# ask gig > save payments

# Scriptable form:
gig project add payments --repo github:owner/name --from staging --to main --use

For custom environment names:

gig verify ABC-123 --repo github:owner/name --envs dev=develop,test=staging,prod=main --from staging --to main

Local Mode Fails With Missing Branches

Local inspect can work without topology:

gig ABC-123 --path .

Local release decisions need topology:

gig verify ABC-123 --path . --from staging --to main

No Ticket Evidence Found

Check:

  • ticket ID spelling
  • repo target
  • provider login
  • whether the ticket only exists in an open PR/MR
  • whether the ticket format matches the default pattern

Try:

gig inspect ABC-123 --repo github:owner/name
gig inspect ABC-123 --path .

Export Format Errors

gig infers export format from --out when possible:

gig verify ABC-123 --out verify.xlsx
gig verify ABC-123 --out verify.csv
gig packet ABC-123 --out release-packet.xlsx

If --format and --out disagree, use matching values:

gig verify ABC-123 --format xlsx --out verify.xlsx
gig verify ABC-123 --format csv --out verify.csv

Release packets have multiple tables. They cannot be written as one CSV file. Use a CSV directory or XLSX workbook instead:

gig packet ABC-123 --format csv --out release-packet/
gig packet ABC-123 --out release-packet.xlsx

Use XLSX for human release review, CSV for spreadsheet or reporting import, and JSON for automation.

SVN Credentials

Do not put credentials in SVN URLs.

Use:

gig login svn

or:

export GIG_SVN_USERNAME=demo
export GIG_SVN_PASSWORD=secret

Need Support Logs

Set:

export GIG_DIAGNOSTICS_FILE=/path/to/gig-diagnostics.jsonl

Then rerun the failing command. The diagnostics file is useful for auth, API, repo, and topology issues.

When To Add Config

Add config only after the simpler options fail.

Use config for:

  • custom branch topology
  • repository metadata
  • team notes in output
  • stable automation defaults

Do not use config as the first-run path.