Gitexit code > 0
fatal: ambiguous argument ... unknown revision
$fatal: ambiguous argument 'feature/new-ui': unknown revision or path not in the working tree.
Analysis
Git cannot find the branch, commit hash, or tag you specified.
Common Triggers
- ●Typo in the branch name.
- ●The branch exists on remote but hasn't been fetched locally yet.
Debug Checks
- $List all local branches:
git branch. - $List all remote branches:
git branch -r.
Resolution
1
Fetch latest branches:
git fetch --all.2
Check for typos in the name.
Metadata
- Tool
- Git
- Severity
- High
- Tags
- #git#checkout#branch