Git ambiguous-argument Git doesn't know whether you are referring to a branch name or a file path.
Reviewed for reference consistency: April 11, 2026
Code is Safe
SECUREGit has paused the operation to protect your code. No data has been lost or corrupted.
What To Know
Where Did It Fail?
Commands That Trigger This
Technical Background
To solve this, Git uses a double-dash `--` as a standard separator. Everything before `--` is treated as a branch or revision, and everything after is treated as a file path.
For example: `git checkout -- build` restores the folder, while `git checkout build --` switches to the branch.
Underlying Causes
Frequently Asked Questions
The double-dash is a standard POSIX convention used in many command-line tools to signal the end of command options and the beginning of positional arguments.